From d8fce8a2d4825fd2c866ad2501531a7d170fe8fe Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Fri, 9 Aug 2019 18:33:11 +0200 Subject: [PATCH] Simplify netcat --- wol/scripts/actions.sh | 2 +- wol/scripts/wakeonlanservice.sh | 2 +- wol/www/index.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wol/scripts/actions.sh b/wol/scripts/actions.sh index 59d2326..630027d 100755 --- a/wol/scripts/actions.sh +++ b/wol/scripts/actions.sh @@ -30,5 +30,5 @@ echo $@ | netcat $host $port # If action is "get" something, read answer if [[ "$1" =~ "get" ]] then - stdbuf -i0 $netcat + stdbuf -i0 -o0 -e0 $netcat fi diff --git a/wol/scripts/wakeonlanservice.sh b/wol/scripts/wakeonlanservice.sh index 6617f7f..4c824f3 100755 --- a/wol/scripts/wakeonlanservice.sh +++ b/wol/scripts/wakeonlanservice.sh @@ -27,7 +27,7 @@ answer(){ then netcat $host $port else - stdbuf -oL cat $1 | netcat $host $port + netcat $host $port < $1 fi } diff --git a/wol/www/index.php b/wol/www/index.php index 02b82b3..a792bb9 100644 --- a/wol/www/index.php +++ b/wol/www/index.php @@ -65,7 +65,7 @@ if(!isset($action)){ <p> Vous pouvez trier la table ci dessous en cliquant sur la colonne que vous voulez. <br /> - Cliquer une deuxième fois inverser l'ordre de trie + Cliquer une deuxième fois inverser l'ordre de tri. </p> <div class="table-responsive"> <table class="table-striped table-bordered table-hover" style="text-align:center;"> -- GitLab