git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
84d9702
)
modules/admin-full: fix System -> Administration menu if dropbear is not installed
author
Jo-Philipp Wich
<redacted>
Thu, 8 Dec 2011 03:35:27 +0000
(
03:35
+0000)
committer
Jo-Philipp Wich
<redacted>
Thu, 8 Dec 2011 03:35:27 +0000
(
03:35
+0000)
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
patch
|
blob
|
history
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 94066e93c04723fb9cf9072fb6eae4d751a9c5fa..fbc0dfcb6c10b518e2e84b719391bc7c37fe05d8 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT