summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-09-07 01:00:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-09-07 01:00:20 +0000
commita4c597209a3b50b76cd2c3468176b3fbdf7f27ba (patch)
tree281a34c6cfc74deed957712c19b38d34138fe2e1 /etc/rc.initial.setlanip
parent254454a2f6ced73758893b611f4a68ee404ba6dd (diff)
downloadpfsense-a4c597209a3b50b76cd2c3468176b3fbdf7f27ba.zip
pfsense-a4c597209a3b50b76cd2c3468176b3fbdf7f27ba.tar.gz
Check to see if a interface has a dhcp key before trying to unset
if the interface has a dhcp server enabled.
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-xetc/rc.initial.setlanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 668fe64..08de05e 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -165,7 +165,8 @@
/* TODO - this line is causing a "Fatal error: Cannot unset
string offsets in /etc/rc.initial.setlanip" on below line
number */
- unset($config['dhcpd'][$interface]['enable']);
+ if($config['dhcpd'][$interface])
+ unset($config['dhcpd'][$interface]['enable']);
}
if ($config['system']['webgui']['protocol'] == "https") {
OpenPOWER on IntegriCloud