linkpi_firmware_history/rootfs/link/shell/ntp.sh

15 lines
274 B
Bash
Raw Normal View History

2024-02-15 22:07:35 +01:00
. /link/shell/util/func.sh
while [ true ]
do
jopen /link/config/ntp.json
if [ `jget enable` == "true" ]; then
if ! procExists ntpd ;then
ntpd -p `jget server` -N
fi
else
pkill ntpd
fi
sleep 1
done