mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Merge pull request #1500 from RaspAP/fix/wpa-reinitialize
Update method used reinitialize wpa_supplicant
This commit is contained in:
commit
bdda08b53e
4 changed files with 4 additions and 4 deletions
|
@ -188,7 +188,7 @@ function reinitializeWPA($force)
|
|||
$cmd = "sudo /bin/rm /var/run/wpa_supplicant/$iface";
|
||||
$result = shell_exec($cmd);
|
||||
}
|
||||
$cmd = "sudo wpa_cli -i $iface reconfigure";
|
||||
$cmd = "sudo wpa_supplicant -B -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf -i$iface";
|
||||
$result = shell_exec($cmd);
|
||||
sleep(1);
|
||||
return $result;
|
||||
|
|
Binary file not shown.
|
@ -174,8 +174,8 @@ msgstr "<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does n
|
|||
msgid "No Wifi stations found"
|
||||
msgstr "No Wifi stations found"
|
||||
|
||||
msgid "Reinitializing wpa_supplicant"
|
||||
msgstr "Reinitializing wpa_supplicant"
|
||||
msgid "Reinitialized wpa_supplicant. Choose <strong>Rescan</strong>."
|
||||
msgstr "Reinitialized wpa_supplicant. Choose <strong>Rescan</strong>."
|
||||
|
||||
msgid "Click 'Rescan' to search for nearby Wifi stations."
|
||||
msgstr "Click 'Rescan' to search for nearby Wifi stations."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<form method="POST" action="wpa_conf" name="wpa_conf_form" class="row">
|
||||
<?php echo CSRFTokenFieldTag() ?>
|
||||
<div class="col-xs mr-3 mb-3">
|
||||
<input type="submit" class="btn btn-warning btn-block float-right" name="wpa_reinit" value="<?php echo _("Re-initialize"); ?>" />
|
||||
<input type="submit" class="btn btn-warning btn-block float-right" name="wpa_reinit" value="<?php echo _("Reinitialize"); ?>" />
|
||||
</div>
|
||||
</form>
|
||||
<?php endif ?>
|
||||
|
|
Loading…
Reference in a new issue