$Id$
]]--
+require("luci.tools.webadmin")
+
local is_mini = (luci.dispatcher.context.path[1] == "mini")
s:option(Flag, "enabled", translate("Enable"))
+interface = s:option(ListValue, "interface", translate("Event interface"), translate("On which interface up should start the ddns script process."))
+luci.tools.webadmin.cbi_add_networks(interface)
+interface.default = "wan"
+
svc = s:option(ListValue, "service_name", translate("Service"))
svc.rmempty = false
s.defaults.ip_source = "network"
s.defaults.ip_network = "wan"
else
- require("luci.tools.webadmin")
src = s:option(ListValue, "ip_source",
translate("Source of IP address"))
local webinstalled = luci.model.ipkg.installed("transmission-web")
local button = ""
if running and webinstalled then
- button = " <input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.host+':" .. trport .. "')\"/>"
+ button = " <input type=\"button\" value=\" " .. translate("Open Web Interface") .. " \" onclick=\"window.open('http://'+window.location.hostname+':" .. trport .. "')\"/>"
end
m = Map("transmission", "Transmission", translate("Transmission daemon is a simple bittorrent client, here you can configure the settings.") .. button)
return luaL_error(L, "stack overflow");
}
- if (!lua_type(L, -2) != LUA_TSTRING || !lua_isstring(L, -1)) {
+ if (lua_type(L, -2) != LUA_TSTRING || !lua_isstring(L, -1)) {
return luaL_argerror(L, 3, "invalid environment");
}
lua_pushfstring(L, "%s=%s",
lua_tostring(L, -2), lua_tostring(L, -1));
- lua_insert(L, 4);
+ lua_insert(L, 5);
lua_pop(L, 1);
argn++;
}
char **env = lua_newuserdata(L, sizeof(char*) * (argn + 1));
env[argn] = NULL;
- for (i = 1; i < argn; i++) {
- env[i-1] = (char *)lua_tostring(L, -i);
+ for (i = 1; i <= argn; i++) {
+ env[i-1] = (char *)lua_tostring(L, -(i+1));
}
execve(path, args, env);
"PO-Revision-Date: 2009-05-26 20:19+0200\n"
"Last-Translator: Eduard Duran <iopahopa@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"PO-Revision-Date: 2010-04-02 13:44+0100\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "Netzwerk"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "δίκτυο"
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
+
#, fuzzy
#~ msgid "ddns_service_updateurl"
#~ msgstr "Προσαρμογή URL ενημέρωσης"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr "network"
+
+msgid "Event interface"
+msgstr "Event interface"
+
+msgid "On which interface up should start the ddns script process."
+msgstr "On which interface up should start the ddns script process."
msgid "network"
msgstr "red"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"PO-Revision-Date: 2010-04-02 17:15+0100\n"
"Last-Translator: Benoît Knecht <benoit.knecht@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr "réseau"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "רשת"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "hálózat"
+
+msgid "Event interface"
+msgstr "Esemány interfész"
+
+msgid "On which interface up should start the ddns script process."
+msgstr "Melyik interfész indulása váltsa ki a ddns script indítását."
msgid "network"
msgstr "rete"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "ネットワーク"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"PO-Revision-Date: 2010-04-02 13:44+0100\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "nettverk"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "sieć"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"PO-Revision-Date: 2009-05-19 17:04+0200\n"
"Last-Translator: Jose Monteiro <jm@unimos.net>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "rede"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "retea"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "сеть"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"PO-Revision-Date: 2010-04-02 13:44+0100\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Pootle 2.0.4\n"
msgid "Check for changed IP every"
msgid "network"
msgstr "мережа"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
"PO-Revision-Date: 2009-08-12 18:06+0200\n"
"Last-Translator: Hong Phuc Dang <dhppat@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "network"
msgstr ""
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""
msgid "network"
msgstr "网络"
+
+msgid "Event interface"
+msgstr ""
+
+msgid "On which interface up should start the ddns script process."
+msgstr ""