summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-01 21:05:31 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-01 21:05:31 -0700
commit57e7c46c34e6d95f57574bd3981b1f18777363a5 (patch)
tree97fd4795a45cf6e19e8cd4c4ebc1f5bfe3a9cf3f
parent244f7b1e10a6668b94b3abae900e07d8a66230ca (diff)
downloadvyatta-op-57e7c46c34e6d95f57574bd3981b1f18777363a5.tar.gz
vyatta-op-57e7c46c34e6d95f57574bd3981b1f18777363a5.zip
Ignore ntp.conf server options
Bug 3472 Use awk to only show server not options
-rw-r--r--templates/show/ntp/node.tag/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def
index ef69a68..d1f00d7 100644
--- a/templates/show/ntp/node.tag/node.def
+++ b/templates/show/ntp/node.tag/node.def
@@ -1,4 +1,4 @@
help: Show date and time of specified NTP server
allowed: vyatta-allowed-hosts ntp.vyatta.com ;
- sed -n 's/^server[ \t]\+//p' /etc/ntp.conf
+ awk '/^server/ { print $2 }' /etc/ntp.conf
run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com}