summaryrefslogtreecommitdiff
path: root/templates/show
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-08-12 22:01:59 -0700
commitce2634572cf5b64313a9cccd7cb1fed21bcddb9c (patch)
tree6911dbdd3b87aa49a33244a1828be1557c600281 /templates/show
parent4c5053a29e9caba6374712a1bb197548dcbb3d1d (diff)
downloadvyatta-op-ce2634572cf5b64313a9cccd7cb1fed21bcddb9c.tar.gz
vyatta-op-ce2634572cf5b64313a9cccd7cb1fed21bcddb9c.zip
Ignore ntp.conf server options
Bug 3472 Use awk to only show server not options
Diffstat (limited to 'templates/show')
-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}