diff options
Diffstat (limited to 'templates/system/ntp-server/node.def')
-rw-r--r-- | templates/system/ntp-server/node.def | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/templates/system/ntp-server/node.def b/templates/system/ntp-server/node.def deleted file mode 100644 index 230dd31..0000000 --- a/templates/system/ntp-server/node.def +++ /dev/null @@ -1,17 +0,0 @@ -multi: -type: txt -help: "Name or IP address of NTP server" -update: "touch /etc/ntp.conf && \ -if ! grep -q 'server.*$(@)' /etc/ntp.conf; then \ - echo \"server $(@)\" >> /etc/ntp.conf && \ - /usr/sbin/invoke-rc.d ntp restart; \ -fi" -delete: "touch /etc/ntp.conf && \ -if grep -q 'server.*$(@)' /etc/ntp.conf; then \ - sed -i '/server $(@)/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" |