summaryrefslogtreecommitdiff
path: root/scripts/vyatta-system-nameservers
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-06-24 12:50:17 +0200
committerDaniil Baturin <daniil@baturin.org>2018-06-24 12:50:17 +0200
commitbacecf80ea16d3cd30dc7c98c98af013b2adc258 (patch)
tree2b1d6f48708ace28ae4f6c9893ee50f6f390c6b7 /scripts/vyatta-system-nameservers
parent0d8e75e2e808ccf366a1527647a6353c09d92237 (diff)
parent0f19dc57ed6588c083eee8aa9aee09b92b441b08 (diff)
downloadvyatta-cfg-system-lithium.tar.gz
vyatta-cfg-system-lithium.zip
Merge branch 'current' into lithiumlithium
Conflicts: debian/changelog scripts/snmp/vyatta-snmp-v3.pl scripts/snmp/vyatta-snmp.pl templates/interfaces/tunnel/node.def templates/system/sysctl/custom/node.def
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
}
#