mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-09 15:40:45 +02:00
Merge pull request #631 from reikred/master
/system/sdcard/run.sh: make sure ntpd gets run AFTER wifi and internet is working (with timeout)
This commit is contained in:
@@ -119,6 +119,7 @@ if [ ! -f $CONFIGPATH/ntp_srv.conf ]; then
|
||||
cp $CONFIGPATH/ntp_srv.conf.dist $CONFIGPATH/ntp_srv.conf
|
||||
fi
|
||||
ntp_srv="$(cat "$CONFIGPATH/ntp_srv.conf")"
|
||||
timeout -t 30 sh -c "until ping -c1 \"$ntp_srv\" &>/dev/null; do sleep 3; done";
|
||||
/system/sdcard/bin/busybox ntpd -p "$ntp_srv"
|
||||
|
||||
## Load audio driver module:
|
||||
|
Reference in New Issue
Block a user