1
0
mirror of synced 2026-02-02 06:20:56 +00:00

2006-06-02 09:57:15 by steve

Reload DNSMasq if it is installed after modifying /etc/hosts.
This commit is contained in:
steve
2006-06-02 09:57:15 +00:00
parent f21137dfe1
commit 3c55e93eb2

View File

@@ -49,5 +49,18 @@ if [[ -z "${dhcp}" ]]; then
:
else
echo "${ip} ${hostname}" >> /etc/hosts
#
# If we've updated the /etc/hosts file on the host machine
# and there is an installation of dnsmasq installed then
# reload it.
#
# This will let the local LAN clients lookup the new address.
#
if [ -x /usr/sbin/dnsmasq ] ;
if [ -e /var/run/dnsmasq.pid ]; then
kill -HUP `cat /var/run/dnsmasq.pid`
fi
fi
fi
fi