multi:
type: txt
help: Set name or IP address of Network Time Protocol (NTP) server
update:sudo sh -c \
  "if ! grep -q 'server.*$VAR(@)' /etc/ntp.conf; then
     echo \"server $VAR(@) iburst\" >> /etc/ntp.conf
   fi
   if [ $(pgrep -c ntpd) -eq 0 ]; then
     /usr/sbin/invoke-rc.d ntp start
   else
     /usr/sbin/invoke-rc.d ntp restart
   fi"
delete:sudo sh -c \
  "touch /etc/ntp.conf
   if grep -q 'server.*$VAR(@)' /etc/ntp.conf; then
     sed -i '/server $VAR(@)/d' /etc/ntp.conf
     if grep -q '^server ' /etc/ntp.conf; then
       /usr/sbin/invoke-rc.d ntp restart
     else
       /usr/sbin/invoke-rc.d ntp stop
     fi
   fi"
