diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-19 11:25:38 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-19 11:25:38 -0700 |
commit | 724e9418e3f6acf81fcc29172de6c1f5e3335fa7 (patch) | |
tree | 384b0be3e93a8de0b0d890f5fee18d04590ea01c /templates/system/ntp-server | |
parent | 20c7a06a9dd38fb705a245cb755a351241113461 (diff) | |
download | vyatta-cfg-724e9418e3f6acf81fcc29172de6c1f5e3335fa7.tar.gz vyatta-cfg-724e9418e3f6acf81fcc29172de6c1f5e3335fa7.zip |
move "system" configuration templates/scripts to vyatta-cfg-system.
Diffstat (limited to 'templates/system/ntp-server')
-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" |