diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 04:21:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 04:21:12 +0000 |
commit | 5bf11e3605670af5400c697d7de46b6045de22f1 (patch) | |
tree | 8cc4427e7e90a40ed3f8292ce15d394b404c940d /etc/rc.initial.setlanip | |
parent | 79f376201b12e566a2b9004d794a886726878868 (diff) | |
download | pfsense-5bf11e3605670af5400c697d7de46b6045de22f1.zip pfsense-5bf11e3605670af5400c697d7de46b6045de22f1.tar.gz |
When deleting the LAN interface, automatically unset the following
configuration areas:
* Interfaces -> LAN
* DHCPD -> LAN
* Traffic Shaper
* EZ Shaper settings
* Firewall -> NAT
NOTE: when adding back an interface if LAN does not exist, it is added
back before OPTX so that these constaints can be upheld.
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-x | etc/rc.initial.setlanip | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 04f823c..88e56b6 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -168,7 +168,11 @@ } if(!$config['interfaces']['lan']) + unset($config['interfaces']['lan']); unset($config['dhcpd']['lan']); + unset($config['shaper']); + unset($config['ezshaper']); + unset($config['nat']); } write_config(gettext("{$interface} IP configuration from console menu")); |