diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2009-06-17 16:23:35 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2009-06-17 16:23:35 -0700 |
commit | b12adbc316c23b76ffff1ccdc6b6d889e9b99abc (patch) | |
tree | d219331d4cc896ca26cd9448d5dd27beb28c9f07 /scripts/system/vyatta_update_resolv.pl | |
parent | a8b7b384291d13c4d12316c28bc727caae0541e9 (diff) | |
download | vyatta-cfg-quagga-b12adbc316c23b76ffff1ccdc6b6d889e9b99abc.tar.gz vyatta-cfg-quagga-b12adbc316c23b76ffff1ccdc6b6d889e9b99abc.zip |
Merged from Jenner.
Diffstat (limited to 'scripts/system/vyatta_update_resolv.pl')
-rwxr-xr-x | scripts/system/vyatta_update_resolv.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_resolv.pl b/scripts/system/vyatta_update_resolv.pl index d8e30961..7f2b84b2 100755 --- a/scripts/system/vyatta_update_resolv.pl +++ b/scripts/system/vyatta_update_resolv.pl @@ -178,7 +178,7 @@ if ($dhclient_script == 1) { } if ($restart_ntp == 1) { # this corresponds to what is done in name-server/node.def as a fix for bug 1300 - my $cmd_ntp_restart = "if [ -f /etc/ntp.conf ] && grep -q 'server' /etc/ntp.conf; then /usr/sbin/invoke-rc.d ntp restart >&/dev/null; fi &"; + my $cmd_ntp_restart = "if [ -f /etc/ntp.conf ] && grep -q '^server' /etc/ntp.conf; then /usr/sbin/invoke-rc.d ntp restart >&/dev/null; fi &"; system($cmd_ntp_restart); } } |