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:
707701d
)
modules/freifunk: Show remote update in menu only when /usr/sbin/remote-update from...
author
Manuel Munz
<redacted>
Wed, 13 Apr 2011 16:22:54 +0000
(16:22 +0000)
committer
Manuel Munz
<redacted>
Wed, 13 Apr 2011 16:22:54 +0000
(16:22 +0000)
modules/freifunk/luasrc/controller/freifunk/remote_update.lua
patch
|
blob
|
history
diff --git
a/modules/freifunk/luasrc/controller/freifunk/remote_update.lua
b/modules/freifunk/luasrc/controller/freifunk/remote_update.lua
index b894af7ebd168975e95c7ec798a482cc882e61d1..165c2a82c4f5783ccafe394337835c24c62b31fa 100644
(file)
--- a/
modules/freifunk/luasrc/controller/freifunk/remote_update.lua
+++ b/
modules/freifunk/luasrc/controller/freifunk/remote_update.lua
@@
-9,16
+9,15
@@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-$Id: freifunk.lua 4649 2009-05-26 18:30:00Z jow $
]]--
-local nixio = require "nixio"
-
module("luci.controller.freifunk.remote_update", package.seeall)
function index()
local i18n = luci.i18n.translate
-
+ if not nixio.fs.access("/usr/sbin/remote-update") then
+ return
+ end
entry({"admin", "system", "remote_update"}, call("act_remote_update"),
i18n("Freifunk Remote Update"), 90)
end
git clone https://git.99rst.org/PROJECT