luci-base: detect WiFi availability - useful for non-WiFi devices
authorPaul Donald <newtwen+github@gmail.com>
Sun, 22 Dec 2024 00:39:36 +0000 (00:39 +0000)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 22 Dec 2024 00:39:46 +0000 (00:39 +0000)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/root/usr/share/rpcd/ucode/luci

index 0e3104186cbaf0ad3c19f3e07395c4664c509c86..e104225d0f462edb86e6ee92be3da80444e394ce 100644 (file)
@@ -209,6 +209,7 @@ const methods = {
                                cabundle:   access('/etc/ssl/certs/ca-certificates.crt') == true,
                                relayd:     access('/usr/sbin/relayd') == true,
                                apk:        access('/usr/bin/apk') == true,
+                               wifi:       access('/sbin/wifi') == true,
                        };
 
                        const wifi_features = [ 'eap', '11ac', '11ax', '11be', '11r', 'acs', 'sae', 'owe', 'suiteb192', 'wep', 'wps', 'ocv' ];