Merge pull request #278 from nmav/ocserv
[project/luci.git] / modules / freifunk / luasrc / controller / freifunk / remote_update.lua
index badfbf2..cc8dd14 100644 (file)
@@ -9,18 +9,17 @@ 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("ff_remote_update", "Freifunk Remote Update"), 90)
+               _("Freifunk Remote Update"), 90)
 end
 
 function act_remote_update()