From 3d2468cf34207d2104a51833b8dafd05f872dfc8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 8 Dec 2011 03:35:27 +0000 Subject: [PATCH] modules/admin-full: fix System -> Administration menu if dropbear is not installed --- modules/admin-full/luasrc/model/cbi/admin_system/admin.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua b/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua index 94066e93c..fbc0dfcb6 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua @@ -50,6 +50,7 @@ function m.on_commit(map) end +if fs.access("/etc/config/dropbear") then m2 = Map("dropbear", translate("SSH Access"), translate("Dropbear offers SSH network shell access and an integrated SCP server")) @@ -124,4 +125,6 @@ function keys.write(self, section, value) end end +end + return m, m2 -- 2.25.1