From ccd9d67598834b10185c92f792f0ab50bf39e490 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 May 2020 19:32:26 +0200 Subject: [PATCH] luci-mod-system: make dropbear pages depend on dropbear executable Fixes: #4052 Signed-off-by: Jo-Philipp Wich (backported from commit c7686d4b3c660dfe44eb2decbedce89c0873649e) --- .../root/usr/share/luci/menu.d/luci-mod-system.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json index adc3377d5..ef21d6e0a 100644 --- a/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json +++ b/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json @@ -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" } } }, -- 2.25.1