luci-base: fix DSL feature detection
authorJo-Philipp Wich <jo@mein.io>
Tue, 3 May 2022 12:52:35 +0000 (14:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 3 May 2022 12:55:00 +0000 (14:55 +0200)
On boards with ADSL instead of VDSL support we need to expect an
`/sbin/dsl_cpe_control` instead of an `/sbin/vdsl_cpe_control` executable.

Ref: https://forum.openwrt.org/t/dsl-line-stats/126580
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/libexec/rpcd/luci

index d17a7cf40e80c57766d5cf393cbfc681c6ca3e18..6a80951e8c450a3b7e2848965abddb31df9a651e 100755 (executable)
@@ -223,7 +223,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")
+                       rv.dsl           = fs.access("/sbin/dsl_cpe_control") or fs.access("/sbin/vdsl_cpe_control")
 
                        local wifi_features = { "eap", "11n", "11ac", "11r", "acs", "sae", "owe", "suiteb192", "wep", "wps" }