mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
Fix wireless at boot: don't start when not enabled
This commit is contained in:
@@ -28,10 +28,10 @@ if ($arg == 'yes') {
|
||||
} elseif ($arg == 'no') {
|
||||
exec("/etc/rc.d/rc.wireless stop");
|
||||
exec("$docroot/webGui/scripts/update_services 5");
|
||||
} else {
|
||||
} elseif (($wifi['wlan0']['WIFI']??'') == 'yes') {
|
||||
foreach ($wifi as $network => $block) {
|
||||
if ($network == $port) continue;
|
||||
if ($block['GROUP'] == $state && (!$arg || $arg == $network)) {
|
||||
if (($block['GROUP']??'') == $state && (!$arg || $arg == $network)) {
|
||||
$text[] = "SSID=\"$network\"";
|
||||
unset($block['GROUP']);
|
||||
foreach ($block as $key => $value) $text[] = "$key=\"$value\"";
|
||||
|
||||
Reference in New Issue
Block a user