summaryrefslogtreecommitdiffstats
path: root/etc/rc.bootup
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-10 18:43:01 +0000
committerErmal <eri@pfsense.org>2010-11-10 18:43:01 +0000
commit7f8d463f112558978a0c6f5ea57b071c7e4741a2 (patch)
tree4757ba41091295e4892d86eb73a14f2b7a6ddc4f /etc/rc.bootup
parente9d7afeb4ee833c506f7a9d73639de7367408623 (diff)
downloadpfsense-7f8d463f112558978a0c6f5ea57b071c7e4741a2.zip
pfsense-7f8d463f112558978a0c6f5ea57b071c7e4741a2.tar.gz
Bring interfaces up only if there is a mismatch to allow them to be reassigned.
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-xetc/rc.bootup8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index b61130a..2d39df6 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -157,9 +157,6 @@ echo "Loading configuration...";
parse_config_bootup();
echo "done.\n";
-$lan_if = $config['interfaces']['lan']['if'];
-$wan_if = get_real_interface();
-
/*
* Determine if we need to throw a interface exception
* and ask the user to reassign interfaces. This will
@@ -168,6 +165,11 @@ $wan_if = get_real_interface();
while(is_interface_mismatch() == true) {
led_assigninterfaces();
echo "\nNetwork interface mismatch -- Running interface assignment option.\n";
+ $ifaces = get_interface_list();
+ if (is_array($ifaces)) {
+ foreach($ifaces as $iface => $ifdata)
+ interfaces_bring_up($iface);
+ }
set_networking_interfaces_ports();
led_kitt();
}
OpenPOWER on IntegriCloud