summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 17:14:27 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 17:14:27 -0800
commit4555c3ed0f6a6256d60ad6a0337984da54cffa00 (patch)
tree428cba5a12284d0d8f168011d41a800079919830 /templates/system
parent21581023b1fefa1b29c6ffa34235273ec739f318 (diff)
downloadvyatta-cfg-system-4555c3ed0f6a6256d60ad6a0337984da54cffa00.tar.gz
vyatta-cfg-system-4555c3ed0f6a6256d60ad6a0337984da54cffa00.zip
fix for bug 2492: hide ntpd restart messages
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/name-server/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/system/name-server/node.def b/templates/system/name-server/node.def
index ff6ddf2e..fe2bcb02 100644
--- a/templates/system/name-server/node.def
+++ b/templates/system/name-server/node.def
@@ -8,10 +8,10 @@ else \
echo \\\"nameserver\t $(@)\\\" >> /etc/resolv.conf; \
fi && \
if [ -f /etc/ntp.conf ] && grep -q 'server' /etc/ntp.conf; then \
- /usr/sbin/invoke-rc.d ntp restart; \
+ /usr/sbin/invoke-rc.d ntp restart >&/dev/null; \
fi\" "
delete: "sudo sh -c \"touch /etc/resolv.conf && \
sed -i '/$(@)/d' /etc/resolv.conf && \
if [ -f /etc/ntp.conf ] && grep -q 'server' /etc/ntp.conf; then \
- /usr/sbin/invoke-rc.d ntp restart; \
+ /usr/sbin/invoke-rc.d ntp restart >&/dev/null; \
fi\" "