summaryrefslogtreecommitdiff
path: root/scripts/vyatta-system-nameservers
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-05-07 22:41:31 +0200
committerChristian Poessinger <christian@poessinger.com>2018-05-07 22:41:31 +0200
commit9f5c33ea3fb6101c7ce49abe3762d4d497c37ce9 (patch)
tree7acb4888eb8e0f58d4f814f5340961fb13a3c598 /scripts/vyatta-system-nameservers
parent38e2a80870cd2407377458dee2b4e08aef24b088 (diff)
downloadvyatta-cfg-system-9f5c33ea3fb6101c7ce49abe3762d4d497c37ce9.tar.gz
vyatta-cfg-system-9f5c33ea3fb6101c7ce49abe3762d4d497c37ce9.zip
T623: Rewrite NTP subsystem in new XML style interface definition
Diffstat (limited to 'scripts/vyatta-system-nameservers')
-rwxr-xr-xscripts/vyatta-system-nameservers10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/vyatta-system-nameservers b/scripts/vyatta-system-nameservers
index 99019fd1..9c688e80 100755
--- a/scripts/vyatta-system-nameservers
+++ b/scripts/vyatta-system-nameservers
@@ -36,14 +36,6 @@ restart_dnsmasq () {
fi
}
-restart_ntp () {
- # restart ntp if ntp is configured
- if [ -f /etc/ntp.conf ] && grep -q "^server" /etc/ntp.conf; then
- sudo /opt/vyatta/sbin/vyatta_update_ntp.pl
- /usr/sbin/invoke-rc.d ntp restart >&/dev/null
- fi
-}
-
update_system_nameservers () {
nameserver=$1
touch /etc/resolv.conf
@@ -70,7 +62,6 @@ update_system_nameservers () {
mv -f /etc/resolv_tmp.conf /etc/resolv.conf
fi
restart_dnsmasq
- restart_ntp
}
delete_system_nameserver () {
@@ -79,7 +70,6 @@ delete_system_nameserver () {
# remove specified nameserver
sed -i "/$nameserver$/d" /etc/resolv.conf
restart_dnsmasq
- restart_ntp
}
#