From 9bba81ff5b3fe95d7b6642795327f7fba467cb60 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Tue, 14 Apr 2020 21:57:54 -0700 Subject: [PATCH] Modified if condition to work with busybox. --- easytether/fixnet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easytether/fixnet.sh b/easytether/fixnet.sh index abbb2f2..3c81bd5 100755 --- a/easytether/fixnet.sh +++ b/easytether/fixnet.sh @@ -1,7 +1,7 @@ #!/bin/sh # Version -version=0.06 +version=0.07 # A simple script that checks for connectivity (including working DNS resolution) # If no connectivity, reset tethering @@ -26,7 +26,7 @@ while true; do lsusb | grep $TETHERDEV > /dev/null # make sure there is a device connected before continuing - if (( $? )); then + if [ $? == 1 ]; then echo "Tethering device not found! Sleeping 5s..." sleep 5s else