summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-09-07 01:06:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-09-07 01:06:39 +0000
commit7993688e8b0118770d5997230c3f1f1684fd2988 (patch)
treece27be4cea12a45266bdc81e5c7d2fbcd262cfcc /etc/rc.initial.setlanip
parenta4c597209a3b50b76cd2c3468176b3fbdf7f27ba (diff)
downloadpfsense-7993688e8b0118770d5997230c3f1f1684fd2988.zip
pfsense-7993688e8b0118770d5997230c3f1f1684fd2988.tar.gz
Check to see if key exists before unsetting
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 08de05e..d87cc11 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -194,7 +194,8 @@
if(!$config['interfaces']['lan']) {
unset($config['interfaces']['lan']);
- unset($config['dhcpd']['lan']);
+ if($config['dhcpd']['lan']);
+ unset($config['dhcpd']['lan']);
unset($config['shaper']);
unset($config['ezshaper']);
unset($config['nat']);
OpenPOWER on IntegriCloud