From 5bf11e3605670af5400c697d7de46b6045de22f1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Feb 2008 04:21:12 +0000 Subject: 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. --- etc/rc.initial.setlanip | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/rc.initial.setlanip') 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")); -- cgit v1.1