From 05d2502fdffb2d775c937a535dc9d7516a9fbbf1 Mon Sep 17 00:00:00 2001 From: felikcat <29991266+felikcat@users.noreply.github.com> Date: Sun, 12 Mar 2023 13:26:12 -0700 Subject: [PATCH] Update service.sh --- service.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/service.sh b/service.sh index c16982f..df361bd 100644 --- a/service.sh +++ b/service.sh @@ -1,5 +1,4 @@ #!/system/bin/sh -MODDIR=${0%/*} # Write pending (memory) cached data to disk as a precaution before applying any changes. sync @@ -18,8 +17,8 @@ resetprop -v net.tethering.noprovisioning true resetprop -v tether_entitlement_check_state 0 # Don't apply iptables rules until Android has fully booted. -until [ $(getprop sys.boot_completed) -eq 1 ]; do - sleep 1 +until [ "$(getprop sys.boot_completed)" -eq 1 ] && [ -d "/sdcard" ]; do + sleep 3 done # Bypass TTL/HL detections for only Tether device (server) -> Tethered To devices (client).