. /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 fi sleep 1 done