diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-16 09:20:57 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-16 09:20:57 -0500 |
commit | 8556ce57dc760e2a15d0d09502b8fcb869f80ce5 (patch) | |
tree | d9ee5f309613b8d6d612bc988fe83998cc2692f3 /etc | |
parent | 663d19370c1350dee24f554b7d93070c42967947 (diff) | |
download | pfsense-8556ce57dc760e2a15d0d09502b8fcb869f80ce5.zip pfsense-8556ce57dc760e2a15d0d09502b8fcb869f80ce5.tar.gz |
use /var/etc/hosts instead of /etc/hosts which should be a symlink
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.parse-isc-dhcpd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.parse-isc-dhcpd b/etc/rc.parse-isc-dhcpd index cb63a16..4770f87 100755 --- a/etc/rc.parse-isc-dhcpd +++ b/etc/rc.parse-isc-dhcpd @@ -2,16 +2,16 @@ # This script will monitor dhcpd.leases and parse # out active leases and ensure they are present -# in /etc/hosts +# in /var/etc/hosts update_hosts_file() { # $1 = host # $2 = ip - cat /etc/hosts | grep -v "$1" > /tmp/hosts.tmp + cat /var/etc/hosts | grep -v "$1" > /tmp/hosts.tmp if [ "$3" != "" ]; then echo "$2 $1 # dynamic entry created by rc.parse-isc-dhcpd" >> /tmp/hosts.tmp fi - mv /tmp/hosts.tmp /etc/hosts + mv /tmp/hosts.tmp /var/etc/hosts killall -HUP dnsmasq } |