diff options
author | Ermal <eri@pfsense.org> | 2010-03-29 19:01:43 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-29 19:01:43 +0000 |
commit | b97d85c0297b36b8564a77735f64829fdc9370cb (patch) | |
tree | 3b93f7a5e0d1e26a590a3ffb8031e1060c65094a /etc | |
parent | 547340c4b47bce5b017d79f487243ab520593e5a (diff) | |
download | pfsense-b97d85c0297b36b8564a77735f64829fdc9370cb.zip pfsense-b97d85c0297b36b8564a77735f64829fdc9370cb.tar.gz |
Fix hosts file generation.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index c98e746..73a128b 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -46,13 +46,12 @@ function services_parse_dhcpd_hostnames() { /* Make sure we do not error out */ @touch("{$g['dhcpd_chroot_path']}/var/db/dhcpd.leases"); if (!file_exists("{$g['varetc_path']}/hosts")) - mwexec("/bin/ln /etc/hosts {$g['varetc_path']}/hosts"); + system_hosts_generate(); if (file_exists("{$g['varrun_path']}/dhcpleases.pid")) sigkillbypid("{$g['varrun_path']}/dhcpleases.pid", "HUP"); else mwexec("/usr/local/sbin/dhcpleases {$g['dhcpd_chroot_path']}/var/db/dhcpd.leases {$config['system']['domain']} {$g['varrun_path']}/dnsmasq.pid {$g['varetc_path']}/hosts"); } else { - @unlink("{$g['varetc_path']}/hosts"); sigkillbypid("{$g['varrun_path']}/dhcpleases.pid", "TERM"); @unlink("{$g['varrun_path']}/dhcpleases.pid"); } |