luci-base: add APK as detectable feature
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 23 Oct 2024 20:33:05 +0000 (22:33 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 23 Oct 2024 22:04:47 +0000 (00:04 +0200)
Add APK as detectable feature so that generic luci-app-pkg can detect
OPKG or APK package manager.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
modules/luci-base/root/usr/share/rpcd/ucode/luci

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