. /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` -Nnq
fi
sleep $((`jget interval`*60))
else
pkill ntpd
sleep 1
done