netdiscover-docker/run.sh
2021-05-29 20:26:21 +02:00

14 lines
261 B
Bash

#!/bin/bash
if [[ -z "$port" ]];then
port=8080
fi
if [[ -n "$userpass" ]];then
creds="-c "$userpass""
fi
if [[ -z "$title" ]];then
title=netdiscover-docker
fi
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover