<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">priority: 400
multi:
type: txt
help: Set name or IP address of Network Time Protocol (NTP) server
create: if ! grep -q '^server $VAR(@) ' /etc/ntp.conf
        then sudo sh -c \
	   "echo \"server $VAR(@) iburst\" &gt;&gt; /etc/ntp.conf; \
	    /usr/sbin/invoke-rc.d ntp restart"
        elif ! /usr/sbin/invoke-rc.d ntp status
	then sudo /usr/sbin/invoke-rc.d ntp start
	fi
delete: if grep -q '^server $VAR(@) ' /etc/ntp.conf
	then sudo sed -i '/^server $VAR(@) /d' /etc/ntp.conf
	   if grep -q '^server ' /etc/ntp.conf
	   then sudo /usr/sbin/invoke-rc.d ntp restart
	   else sudo /usr/sbin/invoke-rc.d ntp stop
	   fi
        fi
</pre></body></html>