diff --git a/includes/hostapd.php b/includes/hostapd.php index 946c2ff5..ae44e533 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -28,12 +28,9 @@ function DisplayHostAPDConfig() if (CSRFValidate()) { $status->addMessage('Attempting to start hotspot', 'info'); if ($arrHostapdConf['WifiAPEnable'] == 1) { - //exec('sudo /etc/raspap/hostapd/servicesdisable.sh'); - exec('sudo /etc/raspap/hostapd/servicestart.sh', $return ); + exec('sudo /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3', $return ); } else { - // Todo: remove uap0 interface before switching back to wlan0, else IAID conflict with dhcpcd - // Stop/start dhcpd.service - exec( 'sudo /etc/init.d/hostapd start', $return ); + exec( 'sudo /etc/raspap/hostapd/servicestart.sh --seconds 3', $return ); } foreach( $return as $line ) { $status->addMessage($line, 'info'); @@ -87,7 +84,7 @@ function DisplayHostAPDConfig()