From 98ce673e02235cd4747889e8ef53901fd8d81306 Mon Sep 17 00:00:00 2001 From: Alexey Derlaft Date: Mon, 17 Oct 2016 14:27:04 +0400 Subject: [PATCH] Simplify script Warning: non tested, but should work --- yotareboot.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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