diff --git a/yotareboot.sh b/yotareboot.sh index 79dcb8b..f133261 100644 --- a/yotareboot.sh +++ b/yotareboot.sh @@ -1,8 +1,7 @@ #!/bin/sh for i in 1 2 3 4 5 do - content=$(wget captive.apple.com -q -O -) - if [ `echo $content | grep -c "tethering.svg" ` -gt 0 ] + if wget captive.apple.com -q -O - | grep -q 'tethering.svg' then usbreset "HUAWEI Mobile" fi