summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-08 03:35:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-08 03:35:27 +0000
commit3d2468cf34207d2104a51833b8dafd05f872dfc8 (patch)
tree97f0bfd89d7acb03a35a0c1e33287dc0cd81839d /modules/admin-full/luasrc/model/cbi
parent84d97024ecda3ebc8d4a5fa9da4cb6a6811dcd47 (diff)
modules/admin-full: fix System -> Administration menu if dropbear is not installed
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/admin.lua3
1 files changed, 3 insertions, 0 deletions
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 94066e93c0..fbc0dfcb6c 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 <abbr title=\"Secure Shell\">SSH</abbr> network shell access and an integrated <abbr title=\"Secure Copy\">SCP</abbr> server"))
@@ -124,4 +125,6 @@ function keys.write(self, section, value)
end
end
+end
+
return m, m2