add passive launch option

This commit is contained in:
Nils
2021-05-31 11:55:54 +02:00
parent 76359ecbb8
commit 457e0e875a
3 changed files with 5 additions and 2 deletions
-1
View File
@@ -8,5 +8,4 @@ RUN tar xvfz gotty_linux_amd64.tar.gz
ENV TERM=xterm
COPY run.sh ./run.sh
RUN chmod +x ./run.sh
RUN tmux new-session -d -A -s netdiscover netdiscover
ENTRYPOINT ["/run.sh"]
+1
View File
@@ -10,3 +10,4 @@ services:
# - port=1234
# - userpass=user:pass
# - title=1234
# - passive=true
+4 -1
View File
@@ -9,5 +9,8 @@ fi
if [[ -z "$title" ]];then
title=netdiscover-docker
fi
if [[ "$passive" == "true" ]];then
passivearg="-p"
fi
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover $passivearg