Skip to content

Commit

Permalink
Merge pull request EliasKotlyar#631 from reikred/master
Browse files Browse the repository at this point in the history
/system/sdcard/run.sh: make sure ntpd gets run AFTER wifi and internet is working (with timeout)
  • Loading branch information
nik0 authored Aug 26, 2018
2 parents 52f947c + 67610e2 commit 0a99204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firmware_mod/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0a99204

Please sign in to comment.