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 <redacted>
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'),
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;
}
},