mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 21:47:19 +00:00
Updated NTP to start using dmon (#338)
Replace timesync with ntpd but retain dmon so that NTP status can be read from the system logs.
This commit is contained in:
parent
436f5e30d6
commit
b35653f86f
@ -13,8 +13,8 @@ case "$1" in
|
|||||||
echo "#####$(basename "$0")#####"
|
echo "#####$(basename "$0")#####"
|
||||||
|
|
||||||
if [ ! -z "$NTP_SERVER" ] ; then
|
if [ ! -z "$NTP_SERVER" ] ; then
|
||||||
# Slight delay required so that we can kill timesync from interfering
|
# Replace timesync call with our own ntpd using a custom NTP server
|
||||||
(sleep 30 && kill -9 $(pgrep -f timesync) ; /opt/wz_mini/tmp/.bin/ntpd -p "$NTP_SERVER") &
|
sed -i "s/\/system\/bin\/timesync/\/opt\/wz_mini\/tmp\/.bin\/ntpd -ndp '$NTP_SERVER'/" /opt/wz_mini/tmp/.storage/app_init.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user