From 724e9418e3f6acf81fcc29172de6c1f5e3335fa7 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 19 Oct 2007 11:25:38 -0700 Subject: move "system" configuration templates/scripts to vyatta-cfg-system. --- templates/system/ntp-server/node.def | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 templates/system/ntp-server/node.def (limited to 'templates/system/ntp-server') 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" -- cgit v1.2.3