diff --git a/wol/scripts/actions.sh b/wol/scripts/actions.sh index 308a9362319737a72ef92209ab4e6c91b0a27ced..0c53e8a022d8ab6cbebda529e7dfd1797943839d 100755 --- a/wol/scripts/actions.sh +++ b/wol/scripts/actions.sh @@ -26,5 +26,5 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . - host=$subnet.52 -echo $@ | netcat $host $port +echo $@ | netcat -N $host $port stdbuf -i0 -o0 -e0 $netcat diff --git a/wol/scripts/get_registry.sh b/wol/scripts/get_registry.sh index 7dd7c7b43f46c3285d39910e74cef4d7701a91e9..e1a04702fb71c0d9156ac8a5bef47269ae88fa6e 100755 --- a/wol/scripts/get_registry.sh +++ b/wol/scripts/get_registry.sh @@ -25,5 +25,5 @@ KPID=`ps aux | grep "$netcat" | awk '{print $2}'` subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3) host=$subnet.52 -echo "get_registry" | netcat $host $port +echo "get_registry" | netcat -N $host $port stdbuf -i0 $netcat diff --git a/wol/scripts/sendmac.sh b/wol/scripts/sendmac.sh index 02fce1ef455c1b6b568c295197b6aa5d3881d80b..f961b96bd2915eb07b83ee10cfe4f9cc9b6fab2c 100755 --- a/wol/scripts/sendmac.sh +++ b/wol/scripts/sendmac.sh @@ -25,5 +25,5 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . - host=$subnet.52 port=9999 -echo "$1" | netcat $host $port +echo "$1" | netcat -N $host $port $netcat diff --git a/wol/scripts/wakeonlanservice.sh b/wol/scripts/wakeonlanservice.sh index b04dc49f780982dc3471047946b4efe24bdb08c4..92545aeff08416034e2369b86e8883963a164f9c 100755 --- a/wol/scripts/wakeonlanservice.sh +++ b/wol/scripts/wakeonlanservice.sh @@ -25,9 +25,9 @@ getip(){ answer(){ if [ -z "$1" ] then - netcat $host $port + netcat -N $host $port else - netcat $host $port < $1 + netcat -N $host $port < $1 fi }