From: Florian Eckert Date: Thu, 12 Feb 2026 11:45:24 +0000 (+0100) Subject: luci-base: replace ufpd access check with service run check X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=01d061715335d0263a64d3624ec67a22e8260a79;p=openwrt-luci.git luci-base: replace ufpd access check with service run check It is not enough simply to check whether the tool is installed. It is essential to check whether the service is actually running. After all, we need the functionality provided by the service. Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/root/usr/share/rpcd/ucode/luci b/modules/luci-base/root/usr/share/rpcd/ucode/luci index b54011a84f..57a96da141 100644 --- a/modules/luci-base/root/usr/share/rpcd/ucode/luci +++ b/modules/luci-base/root/usr/share/rpcd/ucode/luci @@ -239,7 +239,6 @@ const methods = { relayd: access('/usr/sbin/relayd') == true, apk: access('/usr/bin/apk') == true, wifi: access('/sbin/wifi') == true, - ufpd: access('/usr/sbin/ufpd') == true, vrf: access('/sys/module/vrf/refcnt') == true, // vrf.ko is loaded netifd_vrf: false, mptcp: access('/proc/sys/net/mptcp/enabled'), @@ -332,6 +331,11 @@ const methods = { fd.close(); } + result.ufpd = false; + if (access('/usr/sbin/ufpd')) { + result.ufpd = system(`/etc/init.d/ufp running >/dev/null 2>/dev/null`) == 0 + } + return result; } },