summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc3
-rwxr-xr-xetc/rc.bootup8
2 files changed, 5 insertions, 6 deletions
diff --git a/etc/rc b/etc/rc
index c4c1df3..ab1b460 100755
--- a/etc/rc
+++ b/etc/rc
@@ -349,9 +349,6 @@ echo -n "Launching the init system..."
/bin/rm -f /cf/conf/backup/backup.cache
/bin/rm -f /root/lighttpd*
/usr/bin/touch $varrunpath/booting
-for iface in `/sbin/ifconfig -l`; do
- /sbin/ifconfig $iface up
-done
/etc/rc.bootup
# If a shell was selected from recovery
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