mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 15:08:21 +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")#####"
|
||||
|
||||
if [ ! -z "$NTP_SERVER" ] ; then
|
||||
# Slight delay required so that we can kill timesync from interfering
|
||||
(sleep 30 && kill -9 $(pgrep -f timesync) ; /opt/wz_mini/tmp/.bin/ntpd -p "$NTP_SERVER") &
|
||||
# Replace timesync call with our own ntpd using a custom 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
|
||||
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user