luci-base: add rpc feature tests for sysntpd and zram
authorJo-Philipp Wich <jo@mein.io>
Thu, 15 Aug 2019 14:06:46 +0000 (16:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Aug 2019 14:10:42 +0000 (16:10 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/libexec/rpcd/luci

index 89bf14900cffc01bb07a377ffd7c87e94dbda79c..b8950137368e6e58ef3620227e6d20a5df7b14f1 100755 (executable)
@@ -333,6 +333,8 @@ local methods = {
                        rv.br2684ctl     = fs.access("/usr/sbin/br2684ctl")
                        rv.swconfig      = fs.access("/sbin/swconfig")
                        rv.odhcpd        = fs.access("/usr/sbin/odhcpd")
+                       rv.zram          = fs.access("/sys/class/zram-control")
+                       rv.sysntpd       = fs.readlink("/usr/sbin/ntpd") and true
 
                        local wifi_features = { "eap", "11n", "11ac", "11r", "11w", "acs", "sae", "owe", "suiteb192" }