diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-09-07 01:06:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-09-07 01:06:39 +0000 |
commit | 7993688e8b0118770d5997230c3f1f1684fd2988 (patch) | |
tree | ce27be4cea12a45266bdc81e5c7d2fbcd262cfcc /etc/rc.initial.setlanip | |
parent | a4c597209a3b50b76cd2c3468176b3fbdf7f27ba (diff) | |
download | pfsense-7993688e8b0118770d5997230c3f1f1684fd2988.zip pfsense-7993688e8b0118770d5997230c3f1f1684fd2988.tar.gz |
Check to see if key exists before unsetting
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-x | etc/rc.initial.setlanip | 3 |
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']); |