]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Avoid which -s since not all which implementations have it
authorJouni Malinen <j@w1.fi>
Mon, 30 Dec 2024 16:55:34 +0000 (18:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Dec 2024 16:55:34 +0000 (18:55 +0200)
Apparently it was too good to be true that one could have used which
without having to direct stdout to /dev/null.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/stop.sh

index 514993c1b5210d5194bdb8d3407cd0030045315a..4eef7bf1a38614454fecdd296daa72d026471d9f 100755 (executable)
@@ -19,7 +19,7 @@ if grep -q hwsim0 /proc/net/dev; then
 fi
 
 if [ -e /tmp/hlr_auc_gw.sock ]; then
-    if which -s socat; then
+    if which socat > /dev/null; then
        echo TERMINATE | socat - UNIX-SENDTO:/tmp/hlr_auc_gw.sock
        sleep 0.1
     fi