modules/admin-full: fix System -> Administration menu if dropbear is not installed
This commit is contained in:
parent
84d97024ec
commit
3d2468cf34
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,7 @@ function m.on_commit(map)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
if fs.access("/etc/config/dropbear") then
|
||||||
|
|
||||||
m2 = Map("dropbear", translate("SSH Access"),
|
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"))
|
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
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
return m, m2
|
return m, m2
|
||||||
|
|
Loading…
Reference in a new issue