luci-mod-system: make dropbear pages depend on dropbear executable
authorJo-Philipp Wich <jo@mein.io>
Sun, 17 May 2020 17:32:26 +0000 (19:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 17 May 2020 17:33:54 +0000 (19:33 +0200)
Fixes: #4052
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit c7686d4b3c660dfe44eb2decbedce89c0873649e)

modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json

index adc3377d571f894b1d2848a50e9c2f11d9543a92..ef21d6e0a06cb057ad2591966c3ca25c0a1bdf2c 100644 (file)
@@ -31,6 +31,9 @@
                "action": {
                        "type": "view",
                        "path": "system/dropbear"
+               },
+               "depends": {
+                       "fs": { "/usr/sbin/dropbear": "executable" }
                }
        },
 
@@ -40,6 +43,9 @@
                "action": {
                        "type": "view",
                        "path": "system/sshkeys"
+               },
+               "depends": {
+                       "fs": { "/usr/sbin/dropbear": "executable" }
                }
        },