Skip to content

Commit

Permalink
added eventually sleep time at firt installation
Browse files Browse the repository at this point in the history
  • Loading branch information
krios-fabteam committed Aug 10, 2017
1 parent a878e1c commit ae734ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fabui/application/controllers/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ private function installView()
setLanguage($this->input->post('locale'));
}

$interfaces = getInterfaces();
$interfaces = getInterfaces();
if(!isset($interfaces['wlan0'])){ //maybe wlan is not ready yet, so better wait 5 seconds and try again
sleep(5);
$interfaces = getInterfaces();
}
$wizard_steps = array();
$wizard_steps[] = array('id'=>'welcome-tab', 'title' => _("Welcome"), 'active' => true);
$wizard_steps[] = array('id'=>'account-tab', 'title' => _("Account"), 'active' => false);
Expand Down

0 comments on commit ae734ee

Please sign in to comment.