summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/interfaces.inc6
-rwxr-xr-xetc/rc.bootup5
2 files changed, 5 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index ce66319..7c7d256 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1292,16 +1292,14 @@ EOD;
function interface_wireless_clone($if, $wlcfg) {
global $config, $g;
// On bootup pause a sec and let serial catch up
- if($g['booting'])
- usleep(100);
+ if($g['booting'])
+ echo "\n";
/* Check to see if interface has been cloned as of yet.
* If it has not been cloned then go ahead and clone it.
*/
$needs_clone = true;
$interface_num = substr($wlcfg['if'], 3);
if(does_interface_exist("{$wlcfg['if']}_wlan{$interface_num}")) {
- if($g['booting'])
- echo "\n";
$hostap_enabled = `/sbin/ifconfig | grep {$wlcfg['if']}_wlan{$interface_num} | grep hostap`;
if($hostap_enabled)
$needs_clone = false;
diff --git a/etc/rc.bootup b/etc/rc.bootup
index ed8af91..2b59052 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -93,7 +93,7 @@ if (led_count() >= 3) {
echo ".";
/* let the other functions know we're booting */
$pkg_interface = 'console';
-$g['booting'] = TRUE;
+$g['booting'] = true;
touch("{$g['varrun_path']}/booting");
if($g['platform'] == "cdrom") {
$motd = trim(file_get_contents("/etc/motd"));
@@ -356,4 +356,5 @@ unlink("{$g['varrun_path']}/booting");
unset($g['booting']);
led_normalize();
-?>
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud