diff options
author | Ermal <eri@pfsense.org> | 2010-08-23 14:47:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-23 14:47:45 +0000 |
commit | 24d619f5b696914e6b793bbf3c84b25131066b7b (patch) | |
tree | ba4995597d57f2a1b9948979aa9d274b898602f4 /etc/inc/system.inc | |
parent | 5b40ab9f0e8c17ae27ccce763ccf44036fe81551 (diff) | |
download | pfsense-24d619f5b696914e6b793bbf3c84b25131066b7b.zip pfsense-24d619f5b696914e6b793bbf3c84b25131066b7b.tar.gz |
Fixes #837. Fix the startup of dhcpleases during bootup. Also start the dhcpd service earlier there is not reason no to!
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 058629a..3578ee7 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -227,6 +227,14 @@ function system_hosts_generate() { fwrite($fd, $hosts); fclose($fd); + system_dhcpleases_configure(); + + return 0; +} + +function system_dhcpleases_configure() { + global $configure, $g; + /* Start the monitoring process for dynamic dhcpclients. */ if (isset($config['dnsmasq']['regdhcp'])) { /* Make sure we do not error out */ @@ -239,8 +247,6 @@ function system_hosts_generate() { sigkillbypid("{$g['varrun_path']}/dhcpleases.pid", "TERM"); @unlink("{$g['varrun_path']}/dhcpleases.pid"); } - - return 0; } function system_hostname_configure() { |