From 642e2215563eb06e210c440f0b69c03da2c52918 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 15 Feb 2025 19:51:55 +0100 Subject: [PATCH] Fix wireless at boot: don't start when not enabled --- emhttp/plugins/dynamix/scripts/wireless | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/wireless b/emhttp/plugins/dynamix/scripts/wireless index 2b522f62f..ca72260a3 100755 --- a/emhttp/plugins/dynamix/scripts/wireless +++ b/emhttp/plugins/dynamix/scripts/wireless @@ -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\"";