luci-base: add "dsl" system feature
authorJo-Philipp Wich <jo@mein.io>
Thu, 28 Oct 2021 12:43:29 +0000 (14:43 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 15 Feb 2022 23:36:05 +0000 (00:36 +0100)
Allows LuCI views to probe DSL presence using `L.hasSystemFeature('dsl')`.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d513f1461fae9cc67425c38e6ca6711932d12d38)

modules/luci-base/root/usr/libexec/rpcd/luci

index 94536651f34631da986021c0bd38635199a9d556..499f7491b6e3d8587c8947f6c4a377fbc27ee43a 100755 (executable)
@@ -218,6 +218,7 @@ local methods = {
                        rv.dropbear      = fs.access("/usr/sbin/dropbear")
                        rv.cabundle      = fs.access("/etc/ssl/certs/ca-certificates.crt")
                        rv.relayd        = fs.access("/usr/sbin/relayd")
+                       rv.dsl           = fs.access("/sbin/vdsl_cpe_control")
 
                        local wifi_features = { "eap", "11n", "11ac", "11r", "acs", "sae", "owe", "suiteb192", "wep", "wps" }