more compatible switches

This commit is contained in:
q
2016-12-18 23:43:48 +02:00
parent b0f2a2365b
commit 120d5547f5

View File

@@ -37,9 +37,9 @@ printf "\n| %15s | %s\n" IP Hostname
for addr in $( hostname -I ); do
printf "| %15s | %s\n" $addr $( dig +short -x $addr )
done
echo Scotty, beam $( hostname ) down | nc -l -p $PORT
echo Scotty, beam $( hostname ) down | nc -l $PORT
echo Transporter locking to signature
tar -cv $SCOTTY_TAR "$2" | $PV | nc -l -p $PORT
tar -cv $SCOTTY_TAR "$2" | $PV | nc -l $PORT
}
[[ "$1" = down ]] && {
nc -w 10 "$2" $PORT