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>
Thu, 28 Oct 2021 12:43:29 +0000 (14:43 +0200)
Allows LuCI views to probe DSL presence using `L.hasSystemFeature('dsl')`.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/libexec/rpcd/luci

index 17fb3910b221f6289393f808a2e156c6834f05f5..19cdb0ad39e8ea71d3f1c6742d5a0ac491535dec 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" }