diff --git a/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/controller/schedule.lua b/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/controller/schedule.lua index d64b6c6..8c1bda3 100644 --- a/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/controller/schedule.lua +++ b/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/controller/schedule.lua @@ -2,12 +2,8 @@ module("luci.controller.schedule", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() local page - - page = entry({"admin", "services", "schedule"}, cbi("schedule"), _(translate("Scheduled Reboot")), 61) + page = entry({"admin", "services", "schedule"}, cbi("schedule"), _("Scheduled Reboot"), 61) page.dependent = true end diff --git a/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/model/cbi/schedule.lua b/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/model/cbi/schedule.lua index e6ddaa7..e6cbf29 100644 --- a/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/model/cbi/schedule.lua +++ b/rooter/0basicapps/ext-extra/files/usr/lib/lua/luci/model/cbi/schedule.lua @@ -23,8 +23,8 @@ o = d1:option(DummyValue, "zonename", translate("Timezone : "), translate("Be su d = m:section(TypedSection, "reboot", " ") c1 = d:option(ListValue, "enable", " "); -c1:value("0", translate("Disabled")) -c1:value("1", translate("Enabled")) +c1:value("0", "Disabled") +c1:value("1", "Enabled") c1.default=0 sdhour = d:option(ListValue, "sdhour", translate("Reboot Time :")) diff --git a/rooter/0basicapps/ext-p910nd/files/usr/lib/lua/luci/controller/p910ndx.lua b/rooter/0basicapps/ext-p910nd/files/usr/lib/lua/luci/controller/p910ndx.lua index c6feee8..2fc941f 100644 --- a/rooter/0basicapps/ext-p910nd/files/usr/lib/lua/luci/controller/p910ndx.lua +++ b/rooter/0basicapps/ext-p910nd/files/usr/lib/lua/luci/controller/p910ndx.lua @@ -3,9 +3,6 @@ module("luci.controller.p910ndx", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() if not nixio.fs.access("/etc/config/p910nd") then return @@ -13,6 +10,6 @@ function index() local page - page = entry({"admin", "services", "p910ndx"}, cbi("p910ndx"), _(translate("Print Server")), 60) + page = entry({"admin", "services", "p910ndx"}, cbi("p910ndx"), _("Print Server"), 60) page.dependent = true end diff --git a/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/hd_idle.lua b/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/hd_idle.lua index 0cd3229..3e99da2 100644 --- a/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/hd_idle.lua +++ b/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/hd_idle.lua @@ -3,15 +3,13 @@ module("luci.controller.hd_idle", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() if not nixio.fs.access("/etc/config/hd-idle") then return end local page - page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _(translate("Hard Drive Idle")), 60) + + page = entry({"admin", "services", "hd_idle"}, cbi("hd_idle"), _("Hard Drive Idle"), 60) page.dependent = true end diff --git a/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/umount.lua b/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/umount.lua index 37bcf31..dbc085c 100644 --- a/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/umount.lua +++ b/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/controller/umount.lua @@ -1,11 +1,8 @@ module("luci.controller.umount", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() local page - page = entry({"admin", "services", "umount"}, cbi("umount", {hidesavebtn=true, hideresetbtn=true}), translate("Safely Eject Drive"), 25) + page = entry({"admin", "services", "umount"}, cbi("umount", {hidesavebtn=true, hideresetbtn=true}), "Safely Eject Drive", 25) page.dependent = true end diff --git a/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/model/cbi/hd_idle.lua b/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/model/cbi/hd_idle.lua index 1c3c18f..272e926 100644 --- a/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/model/cbi/hd_idle.lua +++ b/rooter/0basicapps/usb-storage/files/usr/lib/lua/luci/model/cbi/hd_idle.lua @@ -4,7 +4,8 @@ require("nixio.fs") m = Map("hd-idle", "Hard Drive Idle", - translate("This is a utility program for spinning-down external disks after a period of idle time.")) + translate("This is a utility program for spinning-down external " .. + "disks after a period of idle time.")) s = m:section(TypedSection, "hd-idle", translate("Settings")) s.anonymous = true diff --git a/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/controller/sms.lua b/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/controller/sms.lua index aa9dc01..e17e2ee 100644 --- a/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/controller/sms.lua +++ b/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/controller/sms.lua @@ -5,15 +5,13 @@ translate = I18N.translate function index() local fs = require "nixio.fs" - - - - if not fs.stat("/etc/nosms") then - local page - page = entry({"admin", "modem", "sms"}, template("rooter/sms"), translate("短信功能"), 35) - page.dependent = true - - end + if not fs.stat("/etc/nosms") then + local page + page = entry({"admin", "modem", "sms"}, template("rooter/sms"), translate("短信功能"), 35) + page.dependent = true + + end + entry({"admin", "modem", "check_read"}, call("action_check_read")) entry({"admin", "modem", "del_sms"}, call("action_del_sms")) @@ -21,6 +19,7 @@ function index() entry({"admin", "modem", "change_sms"}, call("action_change_sms")) entry({"admin", "modem", "change_smsdn"}, call("action_change_smsdn")) entry({"admin", "modem", "change_smsflag"}, call("action_change_smsflag")) + entry({"admin", "modem", "delall_sms"}, call("action_delall_sms")) end function trim(s) @@ -71,12 +70,16 @@ function action_send_sms() luci.http.write_json(rv) end +function action_delall_sms() + smsnum = luci.model.uci.cursor():get("modem", "general", "smsnum") + os.execute("/usr/lib/sms/delall.sh " .. smsnum) +end + function action_del_sms() - local set = tonumber(luci.http.formvalue("set")) - if set ~= nil and set > 0 then - set = set - 1; + local set = luci.http.formvalue("set") + if set ~= nil then smsnum = luci.model.uci.cursor():get("modem", "general", "smsnum") - os.execute("/usr/lib/sms/delsms.sh " .. smsnum .. " " .. set) + os.execute("/usr/lib/sms/delsms.sh " .. smsnum .. " " .. set) os.execute("touch /tmp/smswakeup" .. smsnum) end end @@ -122,7 +125,7 @@ function action_check_read() line = file:read("*line") full = full .. line if k < i then - full = full .. '
' + full = full .. '\n' end end else @@ -157,4 +160,3 @@ function action_change_smsflag() local set = tonumber(luci.http.formvalue("set")) os.execute("/usr/lib/sms/toggle.sh " .. set) end - diff --git a/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/view/rooter/sms.htm b/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/view/rooter/sms.htm index fda6d81..6b4c787 100644 --- a/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/view/rooter/sms.htm +++ b/rooter/0basicsupport/ext-sms/files/usr/lib/lua/luci/view/rooter/sms.htm @@ -22,7 +22,7 @@ if ( ss == "0" ) { clearListBox("smsList"); - document.getElementById('message').innerHTML=""; + document.getElementById('message').value=""; document.getElementById('total').innerHTML=""; document.getElementById('used').innerHTML=""; document.getElementById('mslots').innerHTML=""; @@ -32,7 +32,7 @@ if ( ss == "1" ) { clearListBox("smsList"); - document.getElementById('message').innerHTML=""; + document.getElementById('message').value=""; document.getElementById('total').innerHTML=""; document.getElementById('used').innerHTML=""; document.getElementById('mslots').innerHTML=""; @@ -86,7 +86,7 @@ var i; for(i=0;i"); - document.getElementById("sstat").innerHTML="<%:状态 :消息正在发送%>"; + document.getElementById("sstat").innerHTML="<%:状态 消息正在发送%>"; XHR.get('<%=luci.dispatcher.build_url("admin", "modem", "send_sms")%>', { set: num }, function(x, rv) @@ -214,6 +214,92 @@ } ); } + + function readcheck() + { + XHR.get('<%=luci.dispatcher.build_url("admin", "modem", "check_read")%>', null, + function(x, rv) + { + var ss = rv.ready; + document.getElementById('message').style.color = "initial"; + document.getElementById('conntype').innerHTML=rv.conntype; + if ( ss == "1" ) + { + clearListBox("smsList"); + document.getElementById('message').value=""; + document.getElementById('total').innerHTML=""; + document.getElementById('used').innerHTML=""; + document.getElementById('supported').innerHTML="<%:您有未读的短信,请前往查看%>"; + } + if ( ss == "3" ) + { + document.getElementById('supported').innerHTML="<%:消息读取有问题%>"; + } + if ( ss == "2" ) + { + document.getElementById('supported').innerHTML="<%:存在短信%>"; + clearListBox("smsList"); + document.getElementById('total').innerHTML=rv.max; + document.getElementById('used').innerHTML=rv.used; + var line=rv.line; + var arr=(line.split("\x1D")); + var len = arr.length; + indx = 0; + var i; + for(i=0;i indx-1 ) + { + selectline = indx -1 ; + } + select.value = selectline; + document.getElementById('message').value=ttext[selectline]; + } + } + } + } + ); + } + + function delallsms() + { + var r=confirm("<%:是否确定要删除所有短信?%>"); + if (r==false) + { + return false; + } + clearListBox("smsList"); + document.getElementById('message').style.color = "red"; + document.getElementById('message').value="<%:将删除所有短信.更新列表可能需要一些时间.%>"; + XHR.get('<%=luci.dispatcher.build_url("admin", "modem", "删除所有短信")%>', + null, + function() + { + readcheck(); + } + ); + } function delsms() { @@ -221,84 +307,21 @@ { return false; } - var r=confirm("<%:确认删除选中消息 ?%>"); + var r=confirm("<%:确认删除选中消息?%>"); if (r==false) { return false; } var s = document.getElementById("smsList").value; var dx = index[s]; - dx = dx + 1; clearListBox("smsList"); document.getElementById('message').style.color = "red"; - document.getElementById('message').innerHTML="<%:短信将被删除,同步到列表可能会很久(反复提交删除申请一样很久)%>"; + document.getElementById('message').value="<%:短信将被删除,同步到列表可能会很久(反复提交删除申请一样很久)%>"; XHR.get('<%=luci.dispatcher.build_url("admin", "modem", "del_sms")%>', { set: dx }, function() { - XHR.get('<%=luci.dispatcher.build_url("admin", "modem", "check_read")%>', null, - function(x, rv) - { - var ss = rv.ready; - document.getElementById('message').style.color = "initial"; - document.getElementById('conntype').innerHTML=rv.conntype; - if ( ss == "1" ) - { - clearListBox("smsList"); - document.getElementById('message').innerHTML=""; - document.getElementById('total').innerHTML=""; - document.getElementById('used').innerHTML=""; - document.getElementById('supported').innerHTML="<%:您有未读的短信,请前往查看%>"; - } - if ( ss == "3" ) - { - document.getElementById('supported').innerHTML="<%:消息读取有问题%>"; - } - if ( ss == "2" ) - { - document.getElementById('supported').innerHTML="<%:存在短信%>"; - clearListBox("smsList"); - document.getElementById('total').innerHTML=rv.max; - document.getElementById('used').innerHTML=rv.used; - var line=rv.line; - var arr=(line.split("\x1D")); - var len = arr.length; - indx = 0; - var i; - for(i=0;i indx-1 ) - { - selectline = indx -1 ; - } - select.value = selectline; - document.getElementById('message').innerHTML=ttext[selectline]; - } - } - } - } - ); + readcheck(); } ); } @@ -413,8 +436,8 @@ - - + + @@ -442,6 +465,14 @@
<%:SIM可存放的短信空间 (条)%>
<%:已使用的SIM短信空间 (条)%>
<%:SIM可存放的短信空间 (条)%>
<%:已使用的SIM短信空间 (条)%>
 
 
+ + + + + + + +
  
@@ -450,7 +481,6 @@ - @@ -467,15 +497,18 @@
<%:Date%>
<%:时间%>
<%:短信%>
- - - + + + +
<%:短信内容 :%>
     
    <%:短信内容 :%>
    + +  
    - + @@ -494,7 +527,6 @@
     
    - @@ -522,4 +554,3 @@ <%+footer%> - diff --git a/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delall.sh b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delall.sh new file mode 100644 index 0000000..aa0c50b --- /dev/null +++ b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delall.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +ROOTER=/usr/lib/rooter + +log() { + modlog "Delete SMS" "$@" +} + +CURRMODEM=$1 +COMMPORT="/dev/ttyUSB"$(uci get modem.modem$CURRMODEM.commport) +SMSLOC=$(uci -q get modem.modem$CURRMODEM.smsloc) + +LOCKDIR="/tmp/smslock$CURRMODEM" +PIDFILE="${LOCKDIR}/PID" + +while [ 1 -lt 6 ]; do + if mkdir "${LOCKDIR}" &>/dev/null; then + echo "$$" > "${PIDFILE}" + ATCMDD="AT+CPMS=\"$SMSLOC\";+CMGD=1,4" + OX=$($ROOTER/gcom/gcom-locked "$COMMPORT" "run-at.gcom" "$CURRMODEM" "$ATCMDD") + log "$OX" + uci set modem.modem$CURRMODEM.smsnum=999 + uci commit modem + break + else + OTHERPID="$(cat "${PIDFILE}")" + if [ $? = 0 ]; then + if ! kill -0 $OTHERPID &>/dev/null; then + rm -rf "${LOCKDIR}" + fi + fi + sleep 1 + fi +done +rm -rf "${LOCKDIR}" \ No newline at end of file diff --git a/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delsms.sh b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delsms.sh index 5294092..a8ccfc8 100644 --- a/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delsms.sh +++ b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/delsms.sh @@ -3,12 +3,13 @@ ROOTER=/usr/lib/rooter log() { - logger -t "Delete SMS" "$@" + modlog "Delete SMS" "$@" } CURRMODEM=$1 shift 1 SLOTS="$@" +log "$SLOTS" COMMPORT="/dev/ttyUSB"$(uci get modem.modem$CURRMODEM.commport) @@ -17,13 +18,14 @@ SMSLOC=$(uci -q get modem.modem$CURRMODEM.smsloc) LOCKDIR="/tmp/smslock$CURRMODEM" PIDFILE="${LOCKDIR}/PID" -while [ 1 -lt 6 ]; do +while [ true ]; do if mkdir "${LOCKDIR}" &>/dev/null; then echo "$$" > "${PIDFILE}" for SLOT in $SLOTS do ATCMDD="AT+CPMS=\"$SMSLOC\";+CMGD=$SLOT" OX=$($ROOTER/gcom/gcom-locked "$COMMPORT" "run-at.gcom" "$CURRMODEM" "$ATCMDD") + log "$OX" done uci set modem.modem$CURRMODEM.smsnum=999 uci commit modem diff --git a/rooter/0basicsupport/ext-sms/files/usr/lib/sms/merge.lua b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/merge.lua new file mode 100644 index 0000000..4a7442c --- /dev/null +++ b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/merge.lua @@ -0,0 +1,165 @@ +#!/usr/bin/lua + +function ltrim(s) + return s:match'^%s*(.*)' +end + +file=arg[1] +filet=arg[1] + +overall = {} + +cntr = 1 +filein = io.open(file, "r") +maxslot = -1 +repeat + message = {} + local line = filein:read("*line") + if line == nil then + break + end + if cntr < 2 then + maxused = line + line = filein:read("*line") + maxslots = line + cntr=2 + else + message['slot'] = line + message['phone'] = filein:read("*line") + nline = filein:read("*line") + message['nline'] = nline + ncntr = 1 + msg="" + message['msgnum'] = "xxx" + message['msgord'] = "xxx" + message['msgmax'] = "xxx" + lines = filein:read("*line") + s, e = lines:find("Msg# ") + if s ~= nil then + bs, be = lines:find(",", e+1) + msgnum = lines:sub(e+1, be-1) + message['msgnum'] = msgnum + s, e = lines:find("/", be+1) + msgord = lines:sub(be+1, e-1) + message['msgord'] = msgord + message['msgmax'] = lines:sub(e+1) + lines = filein:read("*line") + end + msg = lines + nc = tonumber(nline) + if nc > 2 then + for i=1,nc-2,1 + do + lines = filein:read("*line") + if lines ~= "" then + msg = msg .. "\n" .. lines + else + if i == nc-2 then + if msgord == message['msgmax'] then + msg = msg .. "\n\n" + else + msg = msg .. "\n\n" + end + else + msg = msg .. "\n" + + end + end + end + --print(nln, msg) + --msg = msg .. "\n" + end + message['msg'] = msg + message['numlines'] = nc - 1 + sht = filein:read("*line") + s, e = sht:find("Msg#") + if s ~= nil then + shtt = sht:sub(1, s-1) + bs, be = sht:find("/", e) + sht = shtt .. sht:sub(be+2) + end + message['short'] = sht + overall[message['slot']] = message + if maxslot < tonumber(message['slot']) then + maxslot = tonumber(message['slot']) + end + end +until 1==0 +filein:close() + +fileout = io.open(filet, "w") +fileout:write(maxused, "\n") +fileout:write(maxslots, "\n") + +for i=0,maxslot,1 +do + msgbuild = {} + shortmsg = {} + if overall[tostring(i)] ~= nil then + --print(i, overall[tostring(i)]['msgnum']) + if overall[tostring(i)]['msgnum'] == "xxx" then + fileout:write(overall[tostring(i)]['slot'], "\n") + fileout:write(overall[tostring(i)]['phone'], "\n") + fileout:write(overall[tostring(i)]['nline'], "\n") + fileout:write(overall[tostring(i)]['msg'], "\n") + fileout:write(overall[tostring(i)]['short'], "\n") + else + msgnum = overall[tostring(i)]['msgnum'] + msgtmp = overall[tostring(i)]['slot'] + msgord = overall[tostring(i)]['msgord'] + msgmax = tonumber(overall[tostring(i)]['msgmax']) + msg = overall[tostring(i)]['msg'] + numlines = overall[tostring(i)]['numlines'] + --print(numlines) + msgbuild[overall[tostring(i)]['msgord']] = overall[tostring(i)]['msg'] + shortmsg[overall[tostring(i)]['msgord']] = overall[tostring(i)]['short'] + for j=i+1,maxslot,1 + do + if overall[tostring(j)] ~= nil then + if overall[tostring(j)]['msgnum'] == msgnum then + numlines = numlines + (overall[tostring(j)]['numlines']) + --print(overall[tostring(j)]['numlines']) + msgtmp = msgtmp .. " " .. overall[tostring(j)]['slot'] + msgbuild[overall[tostring(j)]['msgord']] = overall[tostring(j)]['msg'] + shortmsg[overall[tostring(j)]['msgord']] = overall[tostring(j)]['short'] + overall[tostring(j)] = nil + end + end + end + msg="" + mflg = 0 + short = nil + for j=1,msgmax,1 + do + if msgbuild[tostring(j)] ~= nil then + msg = msg .. msgbuild[tostring(j)] + if short == nil then + short = shortmsg[tostring(j)] + end + else + mflg = 1 + end + end + fileout:write(msgtmp, "\n") + fileout:write(overall[tostring(i)]['phone'], "\n") + + if mflg ~= 0 then + msg = "Partial Message : " .. msg + t = short:gsub("%s+", " ") + short = "Partial Message " .. t + end + endc = string.sub(msg, -2) + if endc == "\n\n" then + mlen = msg:len() - 2 + msg = string.sub(msg,1,mlen) + end + local _,n = msg:gsub("\n","") + fileout:write(tostring(n+1), "\n") + fileout:write(msg, "\n") + fileout:write(short, "\n") + end + end +end +fileout:close() + + diff --git a/rooter/0basicsupport/ext-sms/files/usr/lib/sms/smsread.lua b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/smsread.lua index c881724..65903a4 100644 --- a/rooter/0basicsupport/ext-sms/files/usr/lib/sms/smsread.lua +++ b/rooter/0basicsupport/ext-sms/files/usr/lib/sms/smsread.lua @@ -855,6 +855,7 @@ else end tfile:close() end +os.execute("/usr/lib/sms/merge.lua " .. tfname) os.execute("mv " .. tfname .. " /tmp/smstext" .. modemn) if #delslots > 0 then diff --git a/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/controller/guestwifi.lua b/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/controller/guestwifi.lua index 37bf0ee..a4cabce 100644 --- a/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/controller/guestwifi.lua +++ b/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/controller/guestwifi.lua @@ -1,15 +1,12 @@ module("luci.controller.guestwifi", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() local page if not nixio.fs.access("/etc/config/wireless") then return end - page = entry({"admin", "network", "guestwifi"}, cbi("guestwifi", {hidesavebtn=true, hideresetbtn=true}), translate("Guest Wifi"), 22) + page = entry({"admin", "network", "guestwifi"}, cbi("guestwifi", {hidesavebtn=true, hideresetbtn=true}), "Guest Wifi", 22) page.dependent = true entry( {"admin", "network", "guestwifi", "edit"}, cbi("guestwifi-edit"), nil ).leaf = true diff --git a/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/model/cbi/guestwifi.lua b/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/model/cbi/guestwifi.lua index 4500c32..6ec09c2 100644 --- a/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/model/cbi/guestwifi.lua +++ b/rooter/0basicsupport/luci-app-guestwifi/files/usr/lib/lua/luci/model/cbi/guestwifi.lua @@ -99,12 +99,12 @@ function auto.cfgvalue(self, section) val = 0 end if val == "1" then - return translate("WPA-PSK (Medium Security)") + return "WPA-PSK (Medium Security)" else if val == "2" then - return translate("WPA2-PSK (Strong Security)") + return "WPA2-PSK (Strong Security)" else - return translate("None") + return "None" end end end @@ -118,9 +118,9 @@ function qos.cfgvalue(self, section) if val == "1" then dl_cfg = self.map:get(section, "dl") ul_cfg = self.map:get(section, "ul") - return translate("Download : ") .. dl_cfg .. translate(" Mbit/s / Upload : ") .. ul_cfg .. translate(" Mbit/s") + return "Download : " .. dl_cfg .. " Mbit/s / Upload : " .. ul_cfg .. " Mbit/s" else - return translate("Disabled") + return "Disabled" end end diff --git a/rooter/0drivers/rmbim/files/lib/netifd/proto/mbim.sh b/rooter/0drivers/rmbim/files/lib/netifd/proto/mbim.sh index 436635a..67e48fd 100644 --- a/rooter/0drivers/rmbim/files/lib/netifd/proto/mbim.sh +++ b/rooter/0drivers/rmbim/files/lib/netifd/proto/mbim.sh @@ -328,6 +328,14 @@ _proto_mbim_setup() { log "Failed to connect to network" return 1 fi + log "Save Connect Data" + uci set modem.modem$CURRMODEM.mdevice=$device + uci set modem.modem$CURRMODEM.mapn=$apn + uci set modem.modem$CURRMODEM.mipt=$itp + uci set modem.modem$CURRMODEM.mauth=$auth + uci set modem.modem$CURRMODEM.musername=$username + uci set modem.modem$CURRMODEM.mpassword=$password + uci commit modem tid=$((tid + 1)) @@ -467,6 +475,10 @@ _proto_mbim_setup() { # SIGNAL=$(umbim $DBG -n -t $tid -d $device signal) # CSQ=$(echo "$SIGNAL" | awk '/rssi:/ {print $2}') + if [ -e $ROOTER/modem-led.sh ]; then + $ROOTER/modem-led.sh $CURRMODEM 3 + fi + $ROOTER/log/logger "Modem #$CURRMODEM Connected" log "Modem $CURRMODEM Connected" @@ -540,7 +552,8 @@ _proto_mbim_setup() { $ROOTER/timezone.sh & fi fi - CLB=$(uci -q get modem.modeminfo$CURRMODEM.lb) + #CLB=$(uci -q get modem.modeminfo$CURRMODEM.lb) + CLB=1 if [ -e /etc/config/mwan3 ]; then INTER=$(uci get modem.modeminfo$CURRMODEM.inter) if [ -z $INTER ]; then @@ -577,6 +590,8 @@ proto_mbim_setup() { CPORT=$(uci get modem.modem$CURRMODEM.commport) ATCMDD="AT+COPS=0" OX=$($ROOTER/gcom/gcom-locked "/dev/ttyUSB$CPORT" "run-at.gcom" "$CURRMODEM" "$ATCMDD") + #log "Restart Modem" + #/usr/lib/rooter/luci/restart.sh $CURRMODEM sleep 5 } diff --git a/rooter/0drivers/rqmi/Makefile b/rooter/0drivers/rqmi/Makefile index ef4bc5c..a69b892 100644 --- a/rooter/0drivers/rqmi/Makefile +++ b/rooter/0drivers/rqmi/Makefile @@ -32,11 +32,7 @@ define Package/rqmi/description endef TARGET_CFLAGS += \ - -I$(STAGING_DIR)/usr/include \ - -ffunction-sections \ - -fdata-sections \ - -Wno-error=dangling-pointer \ - -Wno-error=maybe-uninitialized + -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections TARGET_LDFLAGS += -Wl,--gc-sections diff --git a/rooter/0drivers/rqmi/files/usr/lib/rooter/qmi/connectqmi.sh b/rooter/0drivers/rqmi/files/usr/lib/rooter/qmi/connectqmi.sh index 7dc6d02..e3c4cbf 100644 --- a/rooter/0drivers/rqmi/files/usr/lib/rooter/qmi/connectqmi.sh +++ b/rooter/0drivers/rqmi/files/usr/lib/rooter/qmi/connectqmi.sh @@ -202,6 +202,14 @@ for isp in $isplist if [[ -z $(echo "$CONN" | grep -o "disconnected") ]]; then ret=0 + uci set modem.modem$CURRMODEM.mdevice=$device + uci set modem.modem$CURRMODEM.mcid=$cid + uci set modem.modem$CURRMODEM.mapn=$NAPN + uci set modem.modem$CURRMODEM.mauth=$auth + uci set modem.modem$CURRMODEM.musername=$username + uci set modem.modem$CURRMODEM.mpassword=$password + uci commit modem + CONN4=$(uqmi -s -d "$device" --set-client-id wds,"$cid" --get-current-settings) log "GET-CURRENT-SETTINGS is $CONN4" diff --git a/rooter/0mesh/mesh-mesh/Makefile b/rooter/0mesh/mesh-mesh/Makefile deleted file mode 100644 index 39281b6..0000000 --- a/rooter/0mesh/mesh-mesh/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -#Owned by DairyMan@Whirlpool -# -#Copyright GNU act. -include $(TOPDIR)/rules.mk - -PKG_NAME:=mesh-mesh -PKG_VERSION:=4.500 -PKG_RELEASE:=1 - -PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool -include $(INCLUDE_DIR)/package.mk - -define Package/mesh-mesh - SECTION:=utils - CATEGORY:=ROOter - SUBMENU:=Mesh Support - DEPENDS:=+kmod-batman-adv +alfred +batctl +ip - TITLE:=Install scripts for Mesh Network - PKGARCH:=all -endef - -define Package/mesh-mesh/description - Install scripts for Mesh Network -endef - - -define Build/Compile -endef - -define Package/mesh-mesh/install - $(CP) ./files/* $(1)/ -endef - -$(eval $(call BuildPackage,mesh-mesh)) diff --git a/rooter/0mesh/mesh-mesh/files/etc/config/batman-adv b/rooter/0mesh/mesh-mesh/files/etc/config/batman-adv deleted file mode 100644 index 0b4e014..0000000 --- a/rooter/0mesh/mesh-mesh/files/etc/config/batman-adv +++ /dev/null @@ -1,16 +0,0 @@ -config mesh 'bat0' - option aggregated_ogms '1' - option ap_isolation '0' - option bonding '0' - option fragmentation '0' - option gw_bandwidth '10000/2000' - option gw_mode 'client' - option gw_sel_class '20' - option log_level '2' - option orig_interval '1000' - option bridge_loop_avoidance '1' - option distributed_arp_table '1' - option multicast_mode '1' - option network_coding '0' - option hop_penalty '30' - option isolation_mark '0' \ No newline at end of file diff --git a/rooter/0mesh/mesh-mesh/files/etc/config/mesh b/rooter/0mesh/mesh-mesh/files/etc/config/mesh deleted file mode 100644 index 959ba5a..0000000 --- a/rooter/0mesh/mesh-mesh/files/etc/config/mesh +++ /dev/null @@ -1,18 +0,0 @@ - -config radio 'radio' - option radionumber '0' - option usedfs '1' - option channelwidth '0' - option channellist '0' - option channelindex '10' - option dedicated '0' - -config network 'network' - option networkid 'MeshCloud' - option netencrypted '1' - option netpassword 'MeshPassword123' - -config roam 'roam' - option signalenable '1' - option signalid 'abcd' - diff --git a/rooter/0mesh/mesh-mesh/files/etc/hotplug.d/net/99-batman-gw b/rooter/0mesh/mesh-mesh/files/etc/hotplug.d/net/99-batman-gw deleted file mode 100644 index 600f70b..0000000 --- a/rooter/0mesh/mesh-mesh/files/etc/hotplug.d/net/99-batman-gw +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -dhcp4_discover () { - ifup lan_dhcp -} - -dhcp4_kill () { - ifdown lan_dhcp -} - -dnsmasq_start () { - uci revert -P/var/state dhcp.@dnsmasq[0].domainneeded - uci revert -P/var/state dhcp.@dnsmasq[0].boguspriv - uci revert -P/var/state dhcp.@dnsmasq[0].rebind_protection - uci revert -P/var/state dhcp.lan.ignore - /etc/init.d/dnsmasq restart -} - -dnsmasq_stop () { - uci set -P/var/state dhcp.@dnsmasq[0].domainneeded= - uci set -P/var/state dhcp.@dnsmasq[0].boguspriv= - uci set -P/var/state dhcp.@dnsmasq[0].rebind_protection=0 - uci set -P/var/state dhcp.lan.ignore=1 - echo no-dhcp-interface=br-lan >> /var/etc/dnsmasq.conf - /etc/init.d/dnsmasq restart -} - -if [ "$BATTYPE" = "gw" ] ; then - case "$BATACTION" in - add) dnsmasq_stop ; dhcp4_discover ;; - del) dhcp4_kill ; dnsmasq_start ;; - change) dhcp4_kill ; sleep 5 ; dhcp4_discover ;; - esac -fi diff --git a/rooter/0mesh/mesh-mesh/files/etc/init.d/zmesh b/rooter/0mesh/mesh-mesh/files/etc/init.d/zmesh deleted file mode 100644 index 68e6158..0000000 --- a/rooter/0mesh/mesh-mesh/files/etc/init.d/zmesh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org - -START=99 - -start() { - /usr/lib/mesh/checker.sh -} - diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/controller/batman.lua b/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/controller/batman.lua deleted file mode 100644 index 8f2cf83..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/controller/batman.lua +++ /dev/null @@ -1,249 +0,0 @@ ---[[ -LuCI - Lua Configuration Interface - -Copyright 2012 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ -]]-- - -module("luci.controller.batman", package.seeall) - -local function split(str, pat) - local t = {} -- NOTE: use {n = 0} in Lua-5.0 - local fpat = "(.-)" .. pat - local last_end = 1 - local s, e, cap = str:find(fpat, 1) - while s do - if s ~= 1 or cap ~= "" then - table.insert(t,cap) - end - last_end = e+1 - s, e, cap = str:find(fpat, last_end) - end - if last_end <= #str then - cap = str:sub(last_end) - table.insert(t, cap) - end - return t -end - - -function index() - local page - - page = node("admin", "mesh", "batman") - page.target = template("batman/batman") - page.title = _("Mesh Status") - page.order = 1 - - node("batman") - - page = node("batman", "json") - page.target = call("act_json") - - page = node("batman", "topo") - page.target = call("act_topo") - page.leaf = true - - page = node("batman", "graph") - page.target = template("batman_graph") - page.leaf = true -end - -function act_topo(mode) - if not mode or mode == "dot" or mode == "json" then - local fd = io.popen("batadv-vis -f %s" %( mode or "dot" )) - if fd then - if mode == "json" then - luci.http.prepare_content("application/json") - luci.http.write("[") - local ln - repeat - ln = fd:read("*l") - if ln then - luci.http.write(ln) - luci.http.write(", ") - end - until not ln - luci.http.write("{ } ]") - else - luci.http.prepare_content("text/vnd.graphviz") - luci.http.header("Content-Disposition", - "attachment; filename=topo-%s-%s.vd" - %{ luci.sys.hostname(), os.date("%Y%m%d-%H%M%S") }) - luci.http.write(fd:read("*a")) - end - fd:close() - else - luci.http.status(500, "No data") - end - else - luci.http.status(500, "Bad mode") - end -end - -function act_json() - local v, l, fd - local rv = { - interfaces = { }, - originators = { }, - gateways = { } - } - - -- - -- interfaces - -- - fd = io.popen("batctl if") - if fd then - repeat - l = fd:read("*l") - v = l and l:match("^(.-):") - if v then - rv.interfaces[#rv.interfaces+1] = v - end - until not l - fd:close() - end - -os.execute("cat /proc/net/arp > /tmp/arp") - -iplist = {} -maclist = {} -index = 0 -fd = io.open("/tmp/arp") -if fd then - -- skip header line - fd:read("*l") - repeat - l = fd:read("*l") - if l then - lan = l - s1, e1 = lan:find("0x2") - if s1 ~= nil then - s, e = l:find(" ") - if s ~= nil then - ip = l:sub(0, e-1) - - fc = io.popen("batctl translate " .. ip) - if fc then - mac = fc:read("*l") - fc:close() - iplist[index] = ip - maclist[index] = mac - index = index + 1 - end - end - end - end - until not l - fd:close() -end - - -- - -- originators - -- - local originators_command = ( - "batctl o -H 2>/dev/null ".. -- gets originators from batctl - "| tr -d '[]()' ".. -- removes brackets and parenthesis - "| sed 's/^ / -/g' ".. -- normalizes output, adding a minus when no asterisk is outputed in each line - "| sed 's/^ //g' ".. -- removes the space from the beginning of the line - "| sed -r 's/\\s+/,/g'".. -- replaces tabs for commas - "| sed -r 's/s,/,/g'" -- removes the 's' from the last_seen field referencing seconds - ) - fd = io.popen(originators_command) - if fd then - repeat - l = fd:read() - if l then - local asterisk, originator_name, last_seen, link_quality, next_hop, outgoing_if - asterisk, originator_name, last_seen, link_quality, next_hop, outgoing_if = unpack(split(l, ",")) - if originator_name and last_seen and link_quality then - if originator_name == next_hop then - next_hop = "Here" - end - if index > 0 then - for j=0,index-1 do - if maclist[j] == originator_name then - originator_name = iplist[j] .. " (" .. originator_name .. ")" - end - if maclist[j] == next_hop then - next_hop = iplist[j] - end - end - end - rv.originators[#rv.originators+1] = { - originator_name, - tonumber(last_seen) * 1000, - tonumber(link_quality), - next_hop, - outgoing_if - } - end - end - until not l - fd:close() - end - - -- - -- gateways - -- - fd = io.popen("batctl gwl") - if fd then - -- skip header line - fd:read("*l") - fd:read("*l") - - repeat - l = fd:read("*l") - if l then - local a, m, q, n, i, r = l:match("^(%S*) +([^ ]+) +%( *(%d+)%) +([^ ]+) +%[ *(%S+)%]: +(%S+)") - if a and m and q and n and i and r then - c="0" - if index > 0 then - for j=0,index-1 do - if maclist[j] == m then - m = iplist[j] - end - if maclist[j] == n then - n = iplist[j] - end - end - end - rv.gateways[#rv.gateways+1] = { - #a > 0, - m, - tonumber(q), - n, - i, - tonumber(c), - r - } - end - end - until not l - fd:close() - end - - -- local Gateway status - - rv.status = "Client" - fd = io.popen("batctl gw") - if fd then - l = fd:read("*l") - s, e = l:find("server") - if s ~= nil then - rv.status = "Server" - end - fd:close() - end - - - luci.http.prepare_content("application/json") - luci.http.write_json(rv) -end diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/controller/mesh.lua b/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/controller/mesh.lua deleted file mode 100644 index 923cec2..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/controller/mesh.lua +++ /dev/null @@ -1,76 +0,0 @@ -module("luci.controller.mesh", package.seeall) -function index() - local page - entry({"admin", "mesh"}, firstchild(), "Mesh", 71).dependent=false - page = entry({"admin", "mesh", "mesh"}, template("mesh/mesh-setup"), "Mesh Configuration", 71) - page.dependent = true - - entry({"admin", "mesh", "getstate"}, call("action_getstate")) - entry({"admin", "mesh", "sendmeshstate"}, call("action_sendmeshstate")) - entry({"admin", "mesh", "meshcfg"}, call("action_meshcfg")) - entry({"admin", "mesh", "meshstartstop"}, call("action_meshstartstop")) -end - -function action_getstate() - local rv = {} - local radiolist = {} - - file = io.open("/etc/meshrun", "r") - if file == nil then - rv["state"] = "0" - else - rv["state"] = "1" - file:close() - end - os.execute("/usr/lib/mesh/radio.sh ") - file = io.open("/tmp/radiolist", "r") - if file ~= nil then - j = file:read("*line") - rv['radio'] = j - if j ~=0 then - for i=0, j-1 do - radiolist[i] = file:read("*line") - end - rv['radiolist'] = radiolist - end - rv['radionumber'] = file:read("*line") - rv['channelindex'] = file:read("*line") - rv['channellist'] = file:read("*line") - rv['channelwidth'] = file:read("*line") - rv['usedfs'] = file:read("*line") - rv['dedicated'] = file:read("*line") - - rv['networkid'] = file:read("*line") - rv['netencrypted'] = file:read("*line") - rv['netpassword'] = file:read("*line") - - rv['signalenable'] = file:read("*line") - rv['signalid'] = file:read("*line") - - file:close() - else - rv["radio"] = "0" - end - - - luci.http.prepare_content("application/json") - luci.http.write_json(rv) -end - -function action_sendmeshstate() - local set = luci.http.formvalue("set") - - os.execute('/usr/lib/mesh/save.sh "' .. set .. '"') -end - -function action_meshcfg() - local set = luci.http.formvalue("set") - - os.execute('/usr/lib/mesh/savecfg.sh "' .. set .. '"') -end - -function action_meshstartstop() - os.execute('/usr/lib/mesh/startstop.sh') - os.execute("reboot &") -end - diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/view/batman/batman.htm b/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/view/batman/batman.htm deleted file mode 100644 index d23421c..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/view/batman/batman.htm +++ /dev/null @@ -1,300 +0,0 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2012 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - -<% luci.http.prepare_content("text/html") %> - -<%+header%> - - - - - - - - -

    <%:Mesh Status%>

    - -
    -
    - - - - - -
    Internet Status :
      - - -
      - <%:Active Mesh Nodes%> - - - - - - - - - - - -
      <%:Link Quality%><%:MAC-Address%><%:Last Seen%><%:Interface%><%:Next Hop%>

      <%:Collecting data...%>
      -
      - -
      - <%:Other Mesh Nodes with Internet Access%> - - - - - - - - - - - -
      <%:MAC-Address%><%:Speed%><%:Link Quality%><%:Interface%><%:Next Hop%>

      <%:Collecting data...%>
      -
      - -
      - <%:Visualization%> -
      -
      - -<%+footer%> diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/view/mesh/mesh-setup.htm b/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/view/mesh/mesh-setup.htm deleted file mode 100644 index 60a652b..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/lua/luci/view/mesh/mesh-setup.htm +++ /dev/null @@ -1,912 +0,0 @@ -<%+header%> -<% -local sys = require "luci.sys" -local utl = require "luci.util" -local fs = require "nixio.fs" - -function showicon(lck) - if lck == 0 then - return resource .. "/icons/unlock1.png" - else - return resource .. "/icons/lock1.png" - end -end - --%> - - - -
      -
      -

      Mesh Network Configuration

      -
      - -
      - - - - - - - - - - - - - - - - - - - - - -
      Config Status
      Import Configuration File
      Export Configuration File
      Save Settings
      Apply Settings
      Reload Settings
      No Changes
      - - - -
      - - - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Mesh Radio Settings
      Select Backhaul Radio
      - -
      Dedicated Backhaul Radio
      Select Backhaul Channel
      - -
      Select Backhaul Channel
      - -
      Use DFS Channels
      Select Backhaul Channel
      - -
      Use DFS Channels
      Channel Bandwidth
      - -
      Channel Bandwidth
      - -
      Channel Bandwidth
      - -
      Channel Bandwidth
      - -
      - -
      - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Mesh Network Settings
      Mesh Network ID
      Network Encrypted
      -
      - -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Access Point Roaming
      Enable Low Signal Roaming
      Roaming ID
      - - - - - -
      - -
      - -
      - -
      -
      -<%+footer%> \ No newline at end of file diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/checker.sh b/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/checker.sh deleted file mode 100644 index 9bf3cbf..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/checker.sh +++ /dev/null @@ -1,251 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Checker" "$@" -} - -channel2="1,2,3,4,5,6,7,8,9,10,11,12,13,14" -channel5="36,40,44,48,149,153,157,161,165,169" -channel5dfs="36,40,44,48,52,56,60,64,100,104,104,112,116,132,136,140,144,149,153,157,161,165,169" - -absolute() { - num=$1 - if [ "$num" -lt 0 ]; then - num=$((-num)) - fi -} - -loadconfig() { - X=$(uci -q get wireless.wmesh.device) - uci set mesh.radio.radionumber=$(echo ${X#radio}) - - uci set mesh.radio.dedicated=$(uci -q get wireless.default_$X.disabled) - - chanwidth=$(uci -q get wireless.$X.htmode) - case $chanwidth in - "HT20" ) - chanwidth=0 - ;; - "HT40" ) - chanwidth=1 - ;; - "VHT80" ) - chanwidth=2 - ;; - "VHT160" ) - chanwidth=2 - ;; - esac - uci set mesh.radio.channelwidth=$chanwidth - - chan=$(uci -q get wireless.$X.channel) - if [ $chan -lt 15 ]; then - uci set mesh.radio.channellist=0 - uci set mesh.radio.channelindex=$((${chan}-1)) - else - dfs=$(uci -q get wireless.$X.usedfs) - if [ -z $dfs ]; then - dfs=1 - uci set mesh.radio.usedfs=1 - else - uci set mesh.radio.usedfs=$dfs - fi - if [ $dfs -eq 0 ]; then - uci set mesh.radio.channellist=1 - clist=$channel5 - else - uci set mesh.radio.channellist=2 - clist=$channel5dfs - fi - cindex=1 - while [ true ] - do - chan=$(echo "$clist" | cut -d, -f$cindex) - if [ $chan -eq $channel ]; then - uci set mesh.radio.channelindex=$((${cindex}-1)) - break - fi - cindex=$((${cindex}+1)) - done - fi - - enc=$(uci -q get wireless.wmesh.encryption) - if [ $enc = "sae" ]; then - uci set mesh.network.netencrypted=1 - uci set mesh.network.netpassword=$(uci -q get wireless.wmesh.key) - else - uci set mesh.network.netencrypted=0 - uci set mesh.network.netpassword="password" - fi - - uci set mesh.network.networkid=$(uci -q get wireless.wmesh.mesh_id) - - snr=$(uci -q get wireless.default_$X.ieee80211r) - if [ ! -z $snr ]; then - uci set mesh.roam.signalenable=$snr - uci set mesh.roam.signalid=$(uci -q get wireless.default_$X.mobility_domain) - else - uci set mesh.roam.signalenable=0 - uci set mesh.roam.signalid="abcd" - fi - - uci commit mesh -} - -count_radio() { - local config=$1 - local channel - - uci set wireless.default_radio$count.ieee80211r=$signalenable - uci set wireless.default_radio$count.mobility_domain=$signalid - uci set wireless.default_radio$count.ft_over_ds="1" - uci set wireless.default_radio$count.ft_psk_generate_local="1" - count=$((${count}+1)) - -} - -loadmesh() { - radionum=$(uci -q get mesh.radio.radionumber) - dedicated=$(uci -q get mesh.radio.dedicated) - if [ -z $dedicated ]; then - dedicated="0" - fi - log "default_radio$radionum disabled = $dedicated" - - chanwidth=$(uci -q get mesh.radio.channelwidth) - case $chanwidth in - "0" ) - chanwidth=20 - ;; - "1" ) - chanwidth=40 - ;; - "2" ) - chanwidth=80 - ;; - "3" ) - chanwidth=80 - ;; - esac - cwidth=$(uci -q get wireless.radio$radionum.htmode) - ht=$(echo "$cwidth" | grep "VHT") - if [ ! -z $ht ]; then - cwidth="VHT"$chanwidth - else - cwidth="HT"$chanwidth - fi - log "radio$radionum htmode = $cwidth" - - clist=$(uci -q get mesh.radio.channellist) - cindex=$(uci -q get mesh.radio.channelindex) - cindex=$((${cindex}+1)) - case $clist in - "0" ) - channel=$(echo "$channel2" | cut -d, -f$cindex) - ;; - "1" ) - channel=$(echo "$channel5" | cut -d, -f$cindex) - ;; - "2" ) - channel=$(echo "$channel5dfs" | cut -d, -f$cindex) - ;; - esac - log "radio$radionum channel = $channel" - - networkid=$(uci -q get mesh.network.networkid) - netencrypted=$(uci -q get mesh.network.netencrypted) - netpassword=$(uci -q get mesh.network.netpassword) - log "mesh_id = $networkid" - log "encryption = $netencrypted key = $netpassword" - - signalenable=$(uci -q get mesh.roam.signalenable) - signalid=$(uci -q get mesh.roam.signalid) - log "roam enable = $signalenable" - log "id = $signalid" - - ipaddr=$(uci -q get network.lan.ipaddr) - - uci set wireless.default_radio$radionum.disabled=$dedicated - uci set wireless.radio$radionum.htmode=$cwidth - uci set wireless.radio$radionum.channel=$channel - - count=0 - config_load wireless - config_foreach count_radio wifi-iface - - uci set wireless.wmesh=wifi-iface - uci set wireless.wmesh.device=radio$radionum - uci set wireless.wmesh.network="mesh" - uci set wireless.wmesh.ifname="if-mesh" - uci set wireless.wmesh.mode="mesh" - uci set wireless.wmesh.mesh_fwding="0" - uci set wireless.wmesh.mesh_id=$networkid - uci set wireless.w.encryption="none" - if [ $netencrypted = "1" ]; then - uci set wireless.wmesh.encryption="sae" - uci set wireless.wmesh.key=$netpassword - fi - uci set wireless.wmesh.mesh_ttl='1' - uci set wireless.wmesh.mcast_rate='24000' - uci set wireless.wmesh.disabled='0' - uci commit wireless - - uci set alfred.alfred.batmanif='bat0' - uci set alfred.alfred.disabled='0' - uci commit alfred - - uci set network.bat0=interface - uci set network.bat0.proto='batadv' - uci set network.bat0.routing_algo='BATMAN_IV' - uci set network.bat0.aggregated_ogms='1' - uci set network.bat0.ap_isolation='0' - uci set network.bat0.bonding='0' - uci set network.bat0.bridge_loop_avoidance='1' - uci set network.bat0.distributed_arp_table='1' - uci set network.bat0.fragmentation='1' - uci set network.bat0.gw_mode='off' - uci set network.bat0.hop_penalty='30' - uci set network.bat0.isolation_mark='0x00000000/0x00000000' - uci set network.bat0.log_level='0' - uci set network.bat0.multicast_mode='1' - uci set network.bat0.multicast_fanout='16' - uci set network.bat0.network_coding='0' - uci set network.bat0.orig_interval='1000' - - uci set network.mesh=interface - uci set network.mesh.proto='batadv_hardif' - uci set network.mesh.master='bat0' - uci set network.mesh.mtu='2304' - uci set network.mesh.throughput_override='0' - - uci set network.bat0_hardif_eth0=interface - uci set network.bat0_hardif_eth0.proto='batadv_hardif' - uci set network.bat0_hardif_eth0.master='bat0' - uci set network.bat0_hardif_eth0.mtu='1536' - uci set network.bat0_hardif_eth0.device='eth0' - - uci set network.bat0_lan=interface - uci set network.bat0_lan.proto='static' - uci set network.bat0_lan.ipaddr=$ipaddr - uci set network.bat0_lan.netmask='255.255.255.0' - uci set network.bat0_lan.ip6assign='60' - uci set network.bat0_lan.device='bat0' - uci commit network -} - -cmd=$1 -if [ -z $cmd ]; then - WW=$(uci get wireless.wmesh) - if [ -z $WW ]; then - loadmesh - reboot -f - else - loadconfig - /usr/lib/mesh/ping.sh & - fi -else - loadmesh -fi - -return diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/ping.sh b/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/ping.sh deleted file mode 100644 index c29fbec..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/ping.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -pinging() { - PING=0 - RETURN_CODE_1=$(curl -m 10 -s -o /dev/null -w "%{http_code}" http://www.google.com/) - RETURN_CODE_2=$(curl -m 10 -s -o /dev/null -w "%{http_code}" http://www.example.org/) - RETURN_CODE_3=$(curl -m 10 -s -o /dev/null -w "%{http_code}" https://github.com) - - if [[ "$RETURN_CODE_1" != "200" && "$RETURN_CODE_2" != "200" && "$RETURN_CODE_3" != "200" ]]; then - PING=1 - fi -} - -gateway() { - mode=$1 -# batman-adv gateway handling (DHCP mangling) - [ "$(uci -q get batman-adv.bat0.gw_mode)" == "client" ] || return - if grep -q "^=>" /sys/kernel/debug/batman_adv/bat0/gateways ; then - BATTYPE=gw BATACTION=$mode /etc/hotplug.d/net/99-batman-gw - fi -} - -while true ; do - sleep 20 - pinging - if [ $PING -eq 1 ]; then - gateway add - batctl gw_mode client - else - gateway del - batctl gw_mode server 10000 - fi -done \ No newline at end of file diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/radio.sh b/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/radio.sh deleted file mode 100644 index 0ba8076..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/radio.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Radio" "$@" -} - -count_radio() { - local config=$1 - local channel - - config_get channel $1 channel - count=$((${count}+1)) -} - -do_radio() { - local config=$1 - local channel - - config_get channel $1 channel - rn=${config#radio} - freq="1" - if [ $channel -lt 15 ]; then - freq="0" - fi - iwin=$(iw phy phy$rn info) - hw=0 - hwt=$(echo "$iwin" | grep 'short GI for 40 MHz') - if [ ! -z "$hwt" ]; then - hw=1 - fi - hwt=$(echo "$iwin" | grep 'short GI (80 MHz)') - if [ ! -z "$hwt" ]; then - hw=2 - fi - hwt=$(echo "$iwin" | grep 'short GI (160') - if [ ! -z "$hwt" ]; then - hw=3 - fi - echo "$freq|$rn|$hw" >> /tmp/radiolist -} - -count=0 -rm -f /tmp/radiolist -config_load wireless -config_foreach count_radio wifi-device -if [ $count -gt 0 ]; then - echo "$count" > /tmp/radiolist - config_foreach do_radio wifi-device -fi - -CF1=$(uci -q get mesh.radio.radionumber) -CF2=$(uci -q get mesh.radio.channelindex) -CF3=$(uci -q get mesh.radio.channellist) -CF4=$(uci -q get mesh.radio.channelwidth) -CF5=$(uci -q get mesh.radio.usedfs) -CF6=$(uci -q get mesh.radio.dedicated) -echo "$CF1" >> /tmp/radiolist -echo "$CF2" >> /tmp/radiolist -echo "$CF3" >> /tmp/radiolist -echo "$CF4" >> /tmp/radiolist -echo "$CF5" >> /tmp/radiolist -echo "$CF6" >> /tmp/radiolist - -CF1=$(uci -q get mesh.network.networkid) -CF2=$(uci -q get mesh.network.netencrypted) -CF3=$(uci -q get mesh.network.netpassword) -echo "$CF1" >> /tmp/radiolist -echo "$CF2" >> /tmp/radiolist -echo "$CF3" >> /tmp/radiolist - -CF1=$(uci -q get mesh.roam.signalenable) -CF2=$(uci -q get mesh.roam.signalid) -echo "$CF1" >> /tmp/radiolist -echo "$CF2" >> /tmp/radiolist - - - diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/save.sh b/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/save.sh deleted file mode 100644 index d050c7d..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/save.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Save" "$@" -} - -state=$1 - -state=$(echo "$state" | tr "|" ",") -uci set mesh.radio.radionumber=$(echo "$state" | cut -d, -f1) -uci set mesh.radio.channelindex=$(echo "$state" | cut -d, -f2) -uci set mesh.radio.channellist=$(echo "$state" | cut -d, -f3) -uci set mesh.radio.usedfs=$(echo "$state" | cut -d, -f4) -uci set mesh.radio.channelwidth=$(echo "$state" | cut -d, -f5) -uci set mesh.radio.dedicated=$(echo "$state" | cut -d, -f6) - -uci set mesh.network.networkid=$(echo "$state" | cut -d, -f7) -uci set mesh.network.netencrypted=$(echo "$state" | cut -d, -f8) -uci set mesh.network.netpassword=$(echo "$state" | cut -d, -f9) - -uci set mesh.roam.signalenable=$(echo "$state" | cut -d, -f10) -uci set mesh.roam.signalid=$(echo "$state" | cut -d, -f11) - -uci commit mesh diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/savecfg.sh b/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/savecfg.sh deleted file mode 100644 index bd4bf1f..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/savecfg.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Save" "$@" -} - -state=$1 - -PKI_DIR="/www" -cd ${PKI_DIR} -mkdir -p package -cd .. -chmod -R 0777 ${PKI_DIR}/package - -echo "$state" > ${PKI_DIR}/package/meshcfg.meshcfg \ No newline at end of file diff --git a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/startstop.sh b/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/startstop.sh deleted file mode 100644 index 2cd290a..0000000 --- a/rooter/0mesh/mesh-mesh/files/usr/lib/mesh/startstop.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Start Mesh" "$@" -} - -/usr/lib/mesh/checker.sh 1 \ No newline at end of file diff --git a/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/dracula/dracula_graffle.js b/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/dracula/dracula_graffle.js deleted file mode 100644 index 9832727..0000000 --- a/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/dracula/dracula_graffle.js +++ /dev/null @@ -1 +0,0 @@ -Raphael.fn.connection=function(a,b,c){var d=this,e={draw:function(){for(var f=a.getBBox(),g=b.getBBox(),h=0,i=0,j=[{x:f.x+f.width/2,y:f.y-h},{x:f.x+f.width/2,y:f.y+f.height+h},{x:f.x-h,y:f.y+f.height/2},{x:f.x+f.width+h,y:f.y+f.height/2},{x:g.x+g.width/2,y:g.y-i},{x:g.x+g.width/2,y:g.y+g.height+i},{x:g.x-i,y:g.y+g.height/2},{x:g.x+g.width+i,y:g.y+g.height/2}],k={},l=[],m=0;m<4;m++)for(var n=4;n<8;n++){var o=Math.abs(j[m].x-j[n].x),p=Math.abs(j[m].y-j[n].y);(m==n-4||(3!=m&&6!=n||j[m].xj[n].x)&&(0!=m&&5!=n||j[m].y>j[n].y)&&(1!=m&&4!=n||j[m].ye.width-20?c-e.width+20:0),g=a.clientY-(d<20?d-20:d>e.height-20?d-e.height+20:0);e.isDrag.set.translate(f-Math.round(e.isDrag.dx),g-Math.round(e.isDrag.dy));for(var h in e.graph.edges)e.graph.edges[h].connection&&e.graph.edges[h].connection.draw();e.isDrag.dx=f,e.isDrag.dy=g}},f.onmouseup=function(){e.isDrag&&e.isDrag.set.animate({"fill-opacity":.6},500),e.isDrag=!1},this.draw()},Graph.Renderer.Raphael.prototype={translate:function(a){return[(a[0]-this.graph.layoutMinX)*this.factorX+this.radius,(a[1]-this.graph.layoutMinY)*this.factorY+this.radius]},rotate:function(a,b,c){var d=b*Math.cos(c),e=b*Math.sin(c);return[a[0]+d,a[1]+e]},draw:function(){this.factorX=(this.width-2*this.radius)/(this.graph.layoutMaxX-this.graph.layoutMinX),this.factorY=(this.height-2*this.radius)/(this.graph.layoutMaxY-this.graph.layoutMinY);for(a in this.graph.nodes)this.drawNode(this.graph.nodes[a]);for(var a=0;ab&&(b=e),ed&&(d=f),fk&&(i=k),i<-k&&(i=-k),j>k&&(j=k),j<-k&&(j=-k),h.layoutPosX+=i,h.layoutPosY+=j,h.layoutForceX=0,h.layoutForceY=0}},layoutRepulsive:function(a,b){if("undefined"!=typeof a&&"undefined"!=typeof b){var c=b.layoutPosX-a.layoutPosX,d=b.layoutPosY-a.layoutPosY,e=c*c+d*d;if(e<.01){c=.1*Math.random()+.1,d=.1*Math.random()+.1;var e=c*c+d*d}var f=Math.sqrt(e);if(fthis.maxRepulsiveForceDistance&&(g=this.maxRepulsiveForceDistance,f=g*g);var h=(f-this.k*this.k)/this.k;void 0==a.attraction&&(a.attraction=1),h*=.5*Math.log(a.attraction)+1,c.layoutForceX-=h*d/g,c.layoutForceY-=h*e/g,b.layoutForceX+=h*d/g,b.layoutForceY+=h*e/g}},Graph.Layout.Ordered=function(a,b){this.graph=a,this.order=b,this.layout()},Graph.Layout.Ordered.prototype={layout:function(){this.layoutPrepare(),this.layoutCalcBounds()},layoutPrepare:function(a){for(i in this.graph.nodes){var b=this.graph.nodes[i];b.layoutPosX=0,b.layoutPosY=0}var c=0;for(i in this.order){var b=this.order[i];b.layoutPosX=c,b.layoutPosY=Math.random(),c++}},layoutCalcBounds:function(){var a=1/0,b=-(1/0),c=1/0,d=-(1/0);for(i in this.graph.nodes){var e=this.graph.nodes[i].layoutPosX,f=this.graph.nodes[i].layoutPosY;e>b&&(b=e),ed&&(d=f),f

      ";if(ag.childNodes[m]!=2){return null;}}an.svg=!(an.vml=an.type=="VML");aT[aY]=an[aY];an._id=0;an._oid=0;an.fn={};an.is=function(e,d){d=aZ.call(d);return((d=="object"||d=="undefined")&&typeof e==d)||(e==null&&d=="null")||aZ.call(aw.call(e).slice(8,-1))==d;};an.setWindow=function(d){au=d;L=au.document;};var aD=function(e){if(an.vml){var d=/^\s+|\s+$/g;aD=aj(function(R){var S;R=(R+at)[aP](d,at);try{var a0=new ActiveXObject("htmlfile");a0.write("");a0.close();S=a0.body;}catch(a2){S=createPopup().document.body;}var i=S.createTextRange();try{S.style.color=R;var a1=i.queryCommandValue("ForeColor");a1=((a1&255)<<16)|(a1&65280)|((a1&16711680)>>>16);return"#"+("000000"+a1[aA](16)).slice(-6);}catch(a2){return"none";}});}else{var E=L.createElement("i");E.title="Rapha\xebl Colour Picker";E.style.display="none";L.body[aL](E);aD=aj(function(i){E.style.color=i;return L.defaultView.getComputedStyle(E,at).getPropertyValue("color");});}return aD(e);};an.hsb2rgb=aj(function(a3,a1,a7){if(an.is(a3,"object")&&"h" in a3&&"s" in a3&&"b" in a3){a7=a3.b;a1=a3.s;a3=a3.h;}var R,S,a8;if(a7==0){return{r:0,g:0,b:0,hex:"#000"};}if(a3>1||a1>1||a7>1){a3/=255;a1/=255;a7/=255;}var a0=~~(a3*6),a4=(a3*6)-a0,E=a7*(1-a1),e=a7*(1-(a1*a4)),a9=a7*(1-(a1*(1-a4)));R=[a7,e,E,E,a9,a7,a7][a0];S=[a9,a7,a7,e,E,E,a9][a0];a8=[E,E,a9,a7,a7,e,E][a0];R*=255;S*=255;a8*=255;var a5={r:R,g:S,b:a8},d=(~~R)[aA](16),a2=(~~S)[aA](16),a6=(~~a8)[aA](16);d=d[aP](aU,"0");a2=a2[aP](aU,"0");a6=a6[aP](aU,"0");a5.hex="#"+d+a2+a6;return a5;},an);an.rgb2hsb=aj(function(d,e,a1){if(an.is(d,"object")&&"r" in d&&"g" in d&&"b" in d){a1=d.b;e=d.g;d=d.r;}if(an.is(d,"string")){var a3=an.getRGB(d);d=a3.r;e=a3.g;a1=a3.b;}if(d>1||e>1||a1>1){d/=255;e/=255;a1/=255;}var a0=g(d,e,a1),i=aI(d,e,a1),R,E,S=a0;if(i==a0){return{h:0,s:0,b:a0};}else{var a2=(a0-i);E=a2/a0;if(d==a0){R=(e-a1)/a2;}else{if(e==a0){R=2+((a1-d)/a2);}else{R=4+((d-e)/a2);}}R/=6;R<0&&R++;R>1&&R--;}return{h:R,s:E,b:S};},an);var aE=/,?([achlmqrstvxz]),?/gi;an._path2string=function(){return this.join(",")[aP](aE,"$1");};function aj(E,e,d){function i(){var R=Array[aY].slice.call(arguments,0),a0=R[az]("\u25ba"),S=i.cache=i.cache||{},a1=i.count=i.count||[];if(S[Q](a0)){return d?d(S[a0]):S[a0];}a1[m]>=1000&&delete S[a1.shift()];a1[f](a0);S[a0]=E[aW](e,R);return d?d(S[a0]):S[a0];}return i;}an.getRGB=aj(function(d){if(!d||!!((d=d+at).indexOf("-")+1)){return{r:-1,g:-1,b:-1,hex:"none",error:1};}if(d=="none"){return{r:-1,g:-1,b:-1,hex:"none"};}!(({hs:1,rg:1})[Q](d.substring(0,2))||d.charAt()=="#")&&(d=aD(d));var S,i,E,a2,a3,a0=d.match(x);if(a0){if(a0[2]){a2=G(a0[2].substring(5),16);E=G(a0[2].substring(3,5),16);i=G(a0[2].substring(1,3),16);}if(a0[3]){a2=G((a3=a0[3].charAt(3))+a3,16);E=G((a3=a0[3].charAt(2))+a3,16);i=G((a3=a0[3].charAt(1))+a3,16);}if(a0[4]){a0=a0[4][z](/\s*,\s*/);i=W(a0[0]);E=W(a0[1]);a2=W(a0[2]);}if(a0[5]){a0=a0[5][z](/\s*,\s*/);i=W(a0[0])*2.55;E=W(a0[1])*2.55;a2=W(a0[2])*2.55;}if(a0[6]){a0=a0[6][z](/\s*,\s*/);i=W(a0[0]);E=W(a0[1]);a2=W(a0[2]);return an.hsb2rgb(i,E,a2);}if(a0[7]){a0=a0[7][z](/\s*,\s*/);i=W(a0[0])*2.55;E=W(a0[1])*2.55;a2=W(a0[2])*2.55;return an.hsb2rgb(i,E,a2);}a0={r:i,g:E,b:a2};var e=(~~i)[aA](16),R=(~~E)[aA](16),a1=(~~a2)[aA](16);e=e[aP](aU,"0");R=R[aP](aU,"0");a1=a1[aP](aU,"0");a0.hex="#"+e+R+a1;return a0;}return{r:-1,g:-1,b:-1,hex:"none",error:1};},an);an.getColor=function(e){var i=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||0.75},d=this.hsb2rgb(i.h,i.s,i.b);i.h+=0.075;if(i.h>1){i.h=0;i.s-=0.2;i.s<=0&&(this.getColor.start={h:0,s:1,b:i.b});}return d.hex;};an.getColor.reset=function(){delete this.start;};an.parsePathString=aj(function(d){if(!d){return null;}var i={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=[];if(an.is(d,"array")&&an.is(d[0],"array")){e=av(d);}if(!e[m]){(d+at)[aP](/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,function(R,E,a1){var a0=[],S=aZ.call(E);a1[aP](/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,function(a3,a2){a2&&a0[f](+a2);});while(a0[m]>=i[S]){e[f]([E][aS](a0.splice(0,i[S])));if(!i[S]){break;}}});}e[aA]=an._path2string;return e;});an.findDotsAtSegment=function(e,d,be,bc,a0,R,a2,a1,a8){var a6=1-a8,a5=aM(a6,3)*e+aM(a6,2)*3*a8*be+a6*3*a8*a8*a0+aM(a8,3)*a2,a3=aM(a6,3)*d+aM(a6,2)*3*a8*bc+a6*3*a8*a8*R+aM(a8,3)*a1,ba=e+2*a8*(be-e)+a8*a8*(a0-2*be+e),a9=d+2*a8*(bc-d)+a8*a8*(R-2*bc+d),bd=be+2*a8*(a0-be)+a8*a8*(a2-2*a0+be),bb=bc+2*a8*(R-bc)+a8*a8*(a1-2*R+bc),a7=(1-a8)*e+a8*be,a4=(1-a8)*d+a8*bc,E=(1-a8)*a0+a8*a2,i=(1-a8)*R+a8*a1,S=(90-ab.atan((ba-bd)/(a9-bb))*180/ab.PI);(ba>bd||a91){bi=ab.sqrt(by)*bi;bg=ab.sqrt(by)*bg;}var E=bi*bi,br=bg*bg,bt=(a4==S?-1:1)*ab.sqrt(ab.abs((E*br-E*bn*bn-br*bo*bo)/(E*bn*bn+br*bo*bo))),bd=bt*bi*bn/bg+(a9+a8)/2,bc=bt*-bg*bo/bi+(bE+bD)/2,a3=ab.asin(((bE-bc)/bg).toFixed(7)),a2=ab.asin(((bD-bc)/bg).toFixed(7));a3=a9a2){a3=a3-R*2;}if(!S&&a2>a3){a2=a2-R*2;}}else{a3=bb[0];a2=bb[1];bd=bb[2];bc=bb[3];}var a7=a2-a3;if(ab.abs(a7)>bf){var be=a2,bh=a8,a5=bD;a2=a3+bf*(S&&a2>a3?1:-1);a8=bd+bi*ab.cos(a2);bD=bc+bg*ab.sin(a2);bm=K(a8,bD,bi,bg,ba,0,S,bh,a5,[a2,be,bd,bc]);}a7=a2-a3;var a1=ab.cos(a3),bC=ab.sin(a3),a0=ab.cos(a2),bB=ab.sin(a2),bp=ab.tan(a7/4),bs=4/3*bi*bp,bq=4/3*bg*bp,bz=[a9,bE],bx=[a9+bs*bC,bE-bq*a1],bw=[a8+bs*bB,bD-bq*a0],bu=[a8,bD];bx[0]=2*bz[0]-bx[0];bx[1]=2*bz[1]-bx[1];if(bb){return[bx,bw,bu][aS](bm);}else{bm=[bx,bw,bu][aS](bm)[az]()[z](",");var bk=[];for(var bv=0,bl=bm[m];bv1000000000000&&(a0=0.5);ab.abs(S)>1000000000000&&(S=0.5);if(a0>0&&a0<1){e=M(i,d,R,E,a9,a8,a5,a2,a0);a6[f](e.x);a3[f](e.y);}if(S>0&&S<1){e=M(i,d,R,E,a9,a8,a5,a2,S);a6[f](e.x);a3[f](e.y);}a7=(a8-2*E+d)-(a2-2*a8+E);a4=2*(E-d)-2*(a8-E);a1=d-E;a0=(-a4+ab.sqrt(a4*a4-4*a7*a1))/2/a7;S=(-a4-ab.sqrt(a4*a4-4*a7*a1))/2/a7;ab.abs(a0)>1000000000000&&(a0=0.5);ab.abs(S)>1000000000000&&(S=0.5);if(a0>0&&a0<1){e=M(i,d,R,E,a9,a8,a5,a2,a0);a6[f](e.x);a3[f](e.y);}if(S>0&&S<1){e=M(i,d,R,E,a9,a8,a5,a2,S);a6[f](e.x);a3[f](e.y);}return{min:{x:aI[aW](0,a6),y:aI[aW](0,a3)},max:{x:g[aW](0,a6),y:g[aW](0,a3)}};}),H=aj(function(a9,a4){var R=r(a9),a5=a4&&r(a4),a6={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a0=function(ba,bb){var i,bc;if(!ba){return["C",bb.x,bb.y,bb.x,bb.y,bb.x,bb.y];}!(ba[0] in {T:1,Q:1})&&(bb.qx=bb.qy=null);switch(ba[0]){case"M":bb.X=ba[1];bb.Y=ba[2];break;case"A":ba=["C"][aS](K[aW](0,[bb.x,bb.y][aS](ba.slice(1))));break;case"S":i=bb.x+(bb.x-(bb.bx||bb.x));bc=bb.y+(bb.y-(bb.by||bb.y));ba=["C",i,bc][aS](ba.slice(1));break;case"T":bb.qx=bb.x+(bb.x-(bb.qx||bb.x));bb.qy=bb.y+(bb.y-(bb.qy||bb.y));ba=["C"][aS](aK(bb.x,bb.y,bb.qx,bb.qy,ba[1],ba[2]));break;case"Q":bb.qx=ba[1];bb.qy=ba[2];ba=["C"][aS](aK(bb.x,bb.y,ba[1],ba[2],ba[3],ba[4]));break;case"L":ba=["C"][aS](aX(bb.x,bb.y,ba[1],ba[2]));break;case"H":ba=["C"][aS](aX(bb.x,bb.y,ba[1],bb.y));break;case"V":ba=["C"][aS](aX(bb.x,bb.y,bb.x,ba[1]));break;case"Z":ba=["C"][aS](aX(bb.x,bb.y,bb.X,bb.Y));break;}return ba;},e=function(ba,bb){if(ba[bb][m]>7){ba[bb].shift();var bc=ba[bb];while(bc[m]){ba.splice(bb++,0,["C"][aS](bc.splice(0,6)));}ba.splice(bb,1);a7=g(R[m],a5&&a5[m]||0);}},E=function(be,bd,bb,ba,bc){if(be&&bd&&be[bc][0]=="M"&&bd[bc][0]!="M"){bd.splice(bc,0,["M",ba.x,ba.y]);bb.bx=0;bb.by=0;bb.x=be[bc][1];bb.y=be[bc][2];a7=g(R[m],a5&&a5[m]||0);}};for(var a2=0,a7=g(R[m],a5&&a5[m]||0);a23){return{container:1,x:arguments[0],y:arguments[1],width:arguments[2],height:arguments[3]};}}},aG=function(d,i){var e=this;for(var E in i){if(i[Q](E)&&!(E in d)){switch(typeof i[E]){case"function":(function(R){d[E]=d===e?R:function(){return R[aW](e,arguments);};})(i[E]);break;case"object":d[E]=d[E]||{};aG.call(this,d[E],i[E]);break;default:d[E]=i[E];break;}}}},ak=function(d,e){d==e.top&&(e.top=d.prev);d==e.bottom&&(e.bottom=d.next);d.next&&(d.next.prev=d.prev);d.prev&&(d.prev.next=d.next);},Y=function(d,e){if(e.top===d){return;}ak(d,e);d.next=null;d.prev=e.top;e.top.next=d;e.top=d;},k=function(d,e){if(e.bottom===d){return;}ak(d,e);d.next=e.bottom;d.prev=null;e.bottom.prev=d;e.bottom=d;},A=function(e,d,i){ak(e,i);d==i.top&&(i.top=e);d.next&&(d.next.prev=e);e.next=d.next;e.prev=d;d.next=e;},aq=function(e,d,i){ak(e,i);d==i.bottom&&(i.bottom=e);d.prev&&(d.prev.next=e);e.prev=d.prev;d.prev=e;e.next=d;},s=function(d){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+d+"\u201d of removed object");};},ar=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(an.svg){aT[aY].svgns="http://www.w3.org/2000/svg";aT[aY].xlink="http://www.w3.org/1999/xlink";var O=function(d){return +d+(~~d===d)*0.5;},V=function(S){for(var e=0,E=S[m];e0.5)*2-1);aM(a1-0.5,2)+aM(S-0.5,2)>0.25&&(S=ab.sqrt(0.25-aM(a1-0.5,2))*ba+0.5)&&S!=0.5&&(S=S.toFixed(5)-0.00001*ba);}return at;});a7=a7[z](/\s*\-\s*/);if(a4=="linear"){var a0=a7.shift();a0=-W(a0);if(isNaN(a0)){return null;}var R=[0,0,ab.cos(a0*ab.PI/180),ab.sin(a0*ab.PI/180)],a6=1/(g(ab.abs(R[2]),ab.abs(R[3]))||1);R[2]*=a6;R[3]*=a6;if(R[2]<0){R[0]=-R[2];R[2]=0;}if(R[3]<0){R[1]=-R[3];R[3]=0;}}var a3=p(a7);if(!a3){return null;}var e=aJ(a4+"Gradient");e.id="r"+(an._id++)[aA](36);aJ(e,a4=="radial"?{fx:a1,fy:S}:{x1:R[0],y1:R[1],x2:R[2],y2:R[3]});d.defs[aL](e);for(var a2=0,a8=a3[m];a2a1.height)&&(a1.height=a0.y+a0.height-a1.y);(a0.x+a0.width-a1.x>a1.width)&&(a1.width=a0.x+a0.width-a1.x);}}E&&this.hide();return a1;};ax[aY].attr=function(){if(this.removed){return this;}if(arguments[m]==0){var R={};for(var E in this.attrs){if(this.attrs[Q](E)){R[E]=this.attrs[E];}}this._.rt.deg&&(R.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(R.scale=this.scale());R.gradient&&R.fill=="none"&&(R.fill=R.gradient)&&delete R.gradient;return R;}if(arguments[m]==1&&an.is(arguments[0],"string")){if(arguments[0]=="translation"){return t.call(this);}if(arguments[0]=="rotation"){return this.rotate();}if(arguments[0]=="scale"){return this.scale();}if(arguments[0]=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[arguments[0]];}if(arguments[m]==1&&an.is(arguments[0],"array")){var d={};for(var e in arguments[0]){if(arguments[0][Q](e)){d[arguments[0][e]]=this.attrs[arguments[0][e]];}}return d;}if(arguments[m]==2){var S={};S[arguments[0]]=arguments[1];aa(this,S);}else{if(arguments[m]==1&&an.is(arguments[0],"object")){aa(this,arguments[0]);}}return this;};ax[aY].toFront=function(){if(this.removed){return this;}this.node.parentNode[aL](this.node);var d=this.paper;d.top!=this&&Y(this,d);return this;};ax[aY].toBack=function(){if(this.removed){return this;}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);k(this,this.paper);var d=this.paper;}return this;};ax[aY].insertAfter=function(d){if(this.removed){return this;}var e=d.node;if(e.nextSibling){e.parentNode.insertBefore(this.node,e.nextSibling);}else{e.parentNode[aL](this.node);}A(this,d,this.paper);return this;};ax[aY].insertBefore=function(d){if(this.removed){return this;}var e=d.node;e.parentNode.insertBefore(this.node,e);aq(this,d,this.paper);return this;};var P=function(e,d,S,R){d=O(d);S=O(S);var E=aJ("circle");e.canvas&&e.canvas[aL](E);var i=new ax(E,e);i.attrs={cx:d,cy:S,r:R,fill:"none",stroke:"#000"};i.type="circle";aJ(E,i.attrs);return i;};var aF=function(i,d,a1,e,S,a0){d=O(d);a1=O(a1);var R=aJ("rect");i.canvas&&i.canvas[aL](R);var E=new ax(R,i);E.attrs={x:d,y:a1,width:e,height:S,r:a0||0,rx:a0||0,ry:a0||0,fill:"none",stroke:"#000"};E.type="rect";aJ(R,E.attrs);return E;};var ai=function(e,d,a0,S,R){d=O(d);a0=O(a0);var E=aJ("ellipse");e.canvas&&e.canvas[aL](E);var i=new ax(E,e);i.attrs={cx:d,cy:a0,rx:S,ry:R,fill:"none",stroke:"#000"};i.type="ellipse";aJ(E,i.attrs);return i;};var o=function(i,a0,d,a1,e,S){var R=aJ("image");aJ(R,{x:d,y:a1,width:e,height:S,preserveAspectRatio:"none"});R.setAttributeNS(i.xlink,"href",a0);i.canvas&&i.canvas[aL](R);var E=new ax(R,i);E.attrs={x:d,y:a1,width:e,height:S,src:a0};E.type="image";return E;};var X=function(e,d,S,R){var E=aJ("text");aJ(E,{x:d,y:S,"text-anchor":"middle"});e.canvas&&e.canvas[aL](E);var i=new ax(E,e);i.attrs={x:d,y:S,"text-anchor":"middle",text:R,font:j.font,stroke:"none",fill:"#000"};i.type="text";aa(i,i.attrs);return i;};var aV=function(e,d){this.width=e||this.width;this.height=d||this.height;this.canvas[v]("width",this.width);this.canvas[v]("height",this.height);return this;};var w=function(){var E=ao[aW](null,arguments),i=E&&E.container,e=E.x,a0=E.y,R=E.width,d=E.height;if(!i){throw new Error("SVG container not found.");}var S=aJ("svg");R=R||512;d=d||342;aJ(S,{xmlns:"http://www.w3.org/2000/svg",version:1.1,width:R,height:d});if(i==1){S.style.cssText="position:absolute;left:"+e+"px;top:"+a0+"px";L.body[aL](S);}else{if(i.firstChild){i.insertBefore(S,i.firstChild);}else{i[aL](S);}}i=new aT;i.width=R;i.height=d;i.canvas=S;aG.call(i,i,an.fn);i.clear();return i;};aT[aY].clear=function(){var d=this.canvas;while(d.firstChild){d.removeChild(d.firstChild);}this.bottom=this.top=null;(this.desc=aJ("desc"))[aL](L.createTextNode("Created with Rapha\xebl"));d[aL](this.desc);d[aL](this.defs=aJ("defs"));};aT[aY].remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=s(d);}};}if(an.vml){var aH=function(a8){var a5=/[ahqstv]/ig,a0=r;(a8+at).match(a5)&&(a0=H);a5=/[clmz]/g;if(a0==r&&!(a8+at).match(a5)){var e={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},R=/([clmz]),?([^clmz]*)/gi,S=/-?[^,\s-]+/g;var a4=(a8+at)[aP](R,function(a9,bb,i){var ba=[];i[aP](S,function(bc){ba[f](O(bc));});return e[bb]+ba;});return a4;}var a6=a0(a8),E,a4=[],d;for(var a2=0,a7=a6[m];a21&&(e=1);a7.opacity=e;}a8.fill&&(a7.on=true);if(a7.on==null||a8.fill=="none"){a7.on=false;}if(a7.on&&a8.fill){var i=a8.fill.match(c);if(i){a7.src=i[1];a7.type="tile";}else{a7.color=an.getRGB(a8.fill).hex;a7.src=at;a7.type="solid";if(an.getRGB(a8.fill).error&&(bd.type in {circle:1,ellipse:1}||(a8.fill+at).charAt()!="r")&&b(bd,a8.fill)){a9.fill="none";a9.gradient=a8.fill;}}}ba&&a6[aL](a7);var R=(a6.getElementsByTagName("stroke")&&a6.getElementsByTagName("stroke")[0]),bb=false;!R&&(bb=R=ah("stroke"));if((a8.stroke&&a8.stroke!="none")||a8["stroke-width"]||a8["stroke-opacity"]!=null||a8["stroke-dasharray"]||a8["stroke-miterlimit"]||a8["stroke-linejoin"]||a8["stroke-linecap"]){R.on=true;}(a8.stroke=="none"||R.on==null||a8.stroke==0||a8["stroke-width"]==0)&&(R.on=false);R.on&&a8.stroke&&(R.color=an.getRGB(a8.stroke).hex);var e=((+a9["stroke-opacity"]+1||2)-1)*((+a9.opacity+1||2)-1),a4=(W(a8["stroke-width"])||1)*0.75;e<0&&(e=0);e>1&&(e=1);a8["stroke-width"]==null&&(a4=a9["stroke-width"]);a8["stroke-width"]&&(R.weight=a4);a4&&a4<1&&(e*=a4)&&(R.weight=1);R.opacity=e;a8["stroke-linejoin"]&&(R.joinstyle=a8["stroke-linejoin"]||"miter");R.miterlimit=a8["stroke-miterlimit"]||8;a8["stroke-linecap"]&&(R.endcap=a8["stroke-linecap"]=="butt"?"flat":a8["stroke-linecap"]=="square"?"square":"round");if(a8["stroke-dasharray"]){var a5={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};R.dashstyle=a5[Q](a8["stroke-dasharray"])?a5[a8["stroke-dasharray"]]:at;}bb&&a6[aL](R);}if(bd.type=="text"){var a0=bd.paper.span.style;a9.font&&(a0.font=a9.font);a9["font-family"]&&(a0.fontFamily=a9["font-family"]);a9["font-size"]&&(a0.fontSize=a9["font-size"]);a9["font-weight"]&&(a0.fontWeight=a9["font-weight"]);a9["font-style"]&&(a0.fontStyle=a9["font-style"]);bd.node.string&&(bd.paper.span.innerHTML=(bd.node.string+at)[aP](/"));bd.W=a9.w=bd.paper.span.offsetWidth;bd.H=a9.h=bd.paper.span.offsetHeight;bd.X=a9.x;bd.Y=a9.y+O(bd.H/2);switch(a9["text-anchor"]){case"start":bd.node.style["v-text-align"]="left";bd.bbx=O(bd.W/2);break;case"end":bd.node.style["v-text-align"]="right";bd.bbx=-O(bd.W/2);break;default:bd.node.style["v-text-align"]="center";break;}}};var b=function(d,a1){d.attrs=d.attrs||{};var a2=d.attrs,a4=d.node.getElementsByTagName("fill"),S="linear",a0=".5 .5";d.attrs.gradient=a1;a1=(a1+at)[aP](ar,function(a6,a7,i){S="radial";if(a7&&i){a7=W(a7);i=W(i);aM(a7-0.5,2)+aM(i-0.5,2)>0.25&&(i=ab.sqrt(0.25-aM(a7-0.5,2))*((i>0.5)*2-1)+0.5);a0=a7+am+i;}return at;});a1=a1[z](/\s*\-\s*/);if(S=="linear"){var e=a1.shift();e=-W(e);if(isNaN(e)){return null;}}var R=p(a1);if(!R){return null;}d=d.shape||d.node;a4=a4[0]||ah("fill");if(R[m]){a4.on=true;a4.method="none";a4.type=(S=="radial")?"gradientradial":"gradient";a4.color=R[0].color;a4.color2=R[R[m]-1].color;var a5=[];for(var E=0,a3=R[m];E');};}catch(af){ah=function(d){return L.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');};}var w=function(){var i=ao[aW](null,arguments),d=i.container,a2=i.height,a3,e=i.width,a1=i.x,a0=i.y;if(!d){throw new Error("VML container not found.");}var R=new aT,S=R.canvas=L.createElement("div"),E=S.style;e=e||512;a2=a2||342;e==+e&&(e+="px");a2==+a2&&(a2+="px");R.width=1000;R.height=1000;R.coordsize="1000 1000";R.coordorigin="0 0";R.span=L.createElement("span");R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";S[aL](R.span);E.cssText=an.format("width:{0};height:{1};position:absolute;clip:rect(0 {0} {1} 0);overflow:hidden",e,a2);if(d==1){L.body[aL](S);E.left=a1+"px";E.top=a0+"px";}else{d.style.width=e;d.style.height=a2;if(d.firstChild){d.insertBefore(S,d.firstChild);}else{d[aL](S);}}aG.call(R,R,an.fn);return R;};aT[aY].clear=function(){this.canvas.innerHTML=at;this.span=L.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[aL](this.span);this.bottom=this.top=null;};aT[aY].remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=s(d);}};}if((/^Apple|^Google/).test(navigator.vendor)&&!(navigator.userAgent.indexOf("Version/4.0")+1)){aT[aY].safari=function(){var d=this.rect(-99,-99,this.width+99,this.height+99);setTimeout(function(){d.remove();});};}else{aT[aY].safari=function(){};}var ae=(function(){if(L.addEventListener){return function(R,i,e,d){var E=function(S){return e.call(d,S);};R.addEventListener(i,E,false);return function(){R.removeEventListener(i,E,false);return true;};};}else{if(L.attachEvent){return function(S,E,i,e){var R=function(a0){return i.call(e,a0||au.event);};S.attachEvent("on"+E,R);var d=function(){S.detachEvent("on"+E,R);return true;};return d;};}}})();for(var ac=F[m];ac--;){(function(d){ax[aY][d]=function(e){if(an.is(e,"function")){this.events=this.events||[];this.events.push({name:d,f:e,unbind:ae(this.shape||this.node,d,e,this)});}return this;};ax[aY]["un"+d]=function(E){var i=this.events,e=i[m];while(e--){if(i[e].name==d&&i[e].f==E){i[e].unbind();i.splice(e,1);!i.length&&delete this.events;return this;}}return this;};})(F[ac]);}ax[aY].hover=function(e,d){return this.mouseover(e).mouseout(d);};ax[aY].unhover=function(e,d){return this.unmouseover(e).unmouseout(d);};aT[aY].circle=function(d,i,e){return P(this,d||0,i||0,e||0);};aT[aY].rect=function(d,R,e,i,E){return aF(this,d||0,R||0,e||0,i||0,E||0);};aT[aY].ellipse=function(d,E,i,e){return ai(this,d||0,E||0,i||0,e||0);};aT[aY].path=function(d){d&&!an.is(d,"string")&&!an.is(d[0],"array")&&(d+=at);return q(an.format[aW](an,arguments),this);};aT[aY].image=function(E,d,R,e,i){return o(this,E||"about:blank",d||0,R||0,e||0,i||0);};aT[aY].text=function(d,i,e){return X(this,d||0,i||0,e||at);};aT[aY].set=function(d){arguments[m]>1&&(d=Array[aY].splice.call(arguments,0,arguments[m]));return new T(d);};aT[aY].setSize=aV;aT[aY].top=aT[aY].bottom=null;aT[aY].raphael=an;function u(){return this.x+am+this.y;}ax[aY].scale=function(a6,a5,E,e){if(a6==null&&a5==null){return{x:this._.sx,y:this._.sy,toString:u};}a5=a5||a6;!+a5&&(a5=a6);var ba,a8,a9,a7,bm=this.attrs;if(a6!=0){var a4=this.getBBox(),a1=a4.x+a4.width/2,R=a4.y+a4.height/2,bl=a6/this._.sx,bk=a5/this._.sy;E=(+E||E==0)?E:a1;e=(+e||e==0)?e:R;var a3=~~(a6/ab.abs(a6)),a0=~~(a5/ab.abs(a5)),be=this.node.style,bo=E+(a1-E)*bl,bn=e+(R-e)*bk;switch(this.type){case"rect":case"image":var a2=bm.width*a3*bl,bd=bm.height*a0*bk;this.attr({height:bd,r:bm.r*aI(a3*bl,a0*bk),width:a2,x:bo-a2/2,y:bn-bd/2});break;case"circle":case"ellipse":this.attr({rx:bm.rx*a3*bl,ry:bm.ry*a0*bk,r:bm.r*aI(a3*bl,a0*bk),cx:bo,cy:bn});break;case"path":var bg=ad(bm.path),bh=true;for(var bj=0,bc=bg[m];bjS){if(e&&!a8.start){a6=an.findDotsAtSegment(a5,a4,E[1],E[2],E[3],E[4],E[5],E[6],(S-a3)/a1);R+=["C",a6.start.x,a6.start.y,a6.m.x,a6.m.y,a6.x,a6.y];if(a0){return R;}a8.start=R;R=["M",a6.x,a6.y+"C",a6.n.x,a6.n.y,a6.end.x,a6.end.y,E[5],E[6]][az]();a3+=a1;a5=+E[5];a4=+E[6];continue;}if(!d&&!e){a6=an.findDotsAtSegment(a5,a4,E[1],E[2],E[3],E[4],E[5],E[6],(S-a3)/a1);return{x:a6.x,y:a6.y,alpha:a6.alpha};}}a3+=a1;a5=+E[5];a4=+E[6];}R+=E;}a8.end=R;a6=d?a3:e?a8:an.findDotsAtSegment(a5,a4,E[1],E[2],E[3],E[4],E[5],E[6],1);a6.alpha&&(a6={x:a6.x,y:a6.y,alpha:a6.alpha});return a6;};},n=aj(function(E,d,a0,S,a6,a5,a4,a3){var R={x:0,y:0},a2=0;for(var a1=0;a1<1.01;a1+=0.01){var e=M(E,d,a0,S,a6,a5,a4,a3,a1);a1&&(a2+=ab.sqrt(aM(R.x-e.x,2)+aM(R.y-e.y,2)));R=e;}return a2;});var ap=aB(1),C=aB(),J=aB(0,1);ax[aY].getTotalLength=function(){if(this.type!="path"){return;}return ap(this.attrs.path);};ax[aY].getPointAtLength=function(d){if(this.type!="path"){return;}return C(this.attrs.path,d);};ax[aY].getSubpath=function(i,e){if(this.type!="path"){return;}if(ab.abs(this.getTotalLength()-e)<0.000001){return J(this.attrs.path,i).end;}var d=J(this.attrs.path,e,1);return i?J(d,i).end:d;};an.easing_formulas={linear:function(d){return d;},"<":function(d){return aM(d,3);},">":function(d){return aM(d-1,3)+1;},"<>":function(d){d=d*2;if(d<1){return aM(d,3)/2;}d-=2;return(aM(d,3)+2)/2;},backIn:function(e){var d=1.70158;return e*e*((d+1)*e-d);},backOut:function(e){e=e-1;var d=1.70158;return e*e*((d+1)*e+d)+1;},elastic:function(i){if(i==0||i==1){return i;}var e=0.3,d=e/4;return aM(2,-10*i)*ab.sin((i-d)*(2*ab.PI)/e)+1;},bounce:function(E){var e=7.5625,i=2.75,d;if(E<(1/i)){d=e*E*E;}else{if(E<(2/i)){E-=(1.5/i);d=e*E*E+0.75;}else{if(E<(2.5/i)){E-=(2.25/i);d=e*E*E+0.9375;}else{E-=(2.625/i);d=e*E*E+0.984375;}}}return d;}};var I={length:0},aR=function(){var a2=+new Date;for(var be in I){if(be!="length"&&I[Q](be)){var bj=I[be];if(bj.stop){delete I[be];I[m]--;continue;}var a0=a2-bj.start,bb=bj.ms,ba=bj.easing,bf=bj.from,a7=bj.diff,E=bj.to,a6=bj.t,a9=bj.prev||0,a1=bj.el,R=bj.callback,a8={},d;if(a0255?255:(d<0?0:d);},t=function(d,i){if(d==null){return{x:this._.tx,y:this._.ty,toString:u};}this._.tx+=+d;this._.ty+=+i;switch(this.type){case"circle":case"ellipse":this.attr({cx:+d+this.attrs.cx,cy:+i+this.attrs.cy});break;case"rect":case"image":case"text":this.attr({x:+d+this.attrs.x,y:+i+this.attrs.y});break;case"path":var e=ad(this.attrs.path);e[0][1]+=+d;e[0][2]+=+i;this.attr({path:e});break;}return this;};ax[aY].animateWith=function(e,i,d,R,E){I[e.id]&&(i.start=I[e.id].start);return this.animate(i,d,R,E);};ax[aY].animateAlong=ay();ax[aY].animateAlongBack=ay(1);function ay(d){return function(E,i,e,S){var R={back:d};an.is(e,"function")?(S=e):(R.rot=e);E&&E.constructor==ax&&(E=E.attrs.path);E&&(R.along=E);return this.animate(R,i,S);};}ax[aY].onAnimation=function(d){this._run=d||0;return this;};ax[aY].animate=function(be,a5,a4,E){if(an.is(a4,"function")||!a4){E=a4||null;}var a9={},e={},a2={};for(var a6 in be){if(be[Q](a6)){if(Z[Q](a6)){a9[a6]=this.attr(a6);(a9[a6]==null)&&(a9[a6]=j[a6]);e[a6]=be[a6];switch(Z[a6]){case"along":var bc=ap(be[a6]),a7=C(be[a6],bc*!!be.back),R=this.getBBox();a2[a6]=bc/a5;a2.tx=R.x;a2.ty=R.y;a2.sx=a7.x;a2.sy=a7.y;e.rot=be.rot;e.back=be.back;e.len=bc;be.rot&&(a2.r=W(this.rotate())||0);break;case"number":a2[a6]=(e[a6]-a9[a6])/a5;break;case"colour":a9[a6]=an.getRGB(a9[a6]);var a8=an.getRGB(e[a6]);a2[a6]={r:(a8.r-a9[a6].r)/a5,g:(a8.g-a9[a6].g)/a5,b:(a8.b-a9[a6].b)/a5};break;case"path":var S=H(a9[a6],e[a6]);a9[a6]=S[0];var a3=S[1];a2[a6]=[];for(var bb=0,a1=a9[a6][m];bb)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, -Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& -(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, -a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== -"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, -function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
      a"; -var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, -parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= -false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= -s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, -applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; -else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, -a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== -w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, -cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= -c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); -a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, -function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); -k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), -C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= -e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& -f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; -if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", -e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, -"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, -d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, -e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); -t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| -g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, -CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, -g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, -text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, -setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= -h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== -"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, -h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& -q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; -if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

      ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); -(function(){var g=s.createElement("div");g.innerHTML="
      ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: -function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= -{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== -"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", -d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? -a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== -1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
      ","
      "],thead:[1,"","
      "],tr:[2,"","
      "],td:[3,"","
      "],col:[2,"","
      "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
      ","
      "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= -c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, -wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, -prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, -this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); -return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, -""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); -return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", -""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= -c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? -c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= -function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= -Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, -"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= -a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= -a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== -"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
      ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, -serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), -function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, -global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& -e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? -"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== -false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= -false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", -c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| -d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); -g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== -1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== -"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; -if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== -"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| -c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; -this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= -this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, -e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
      "; -a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); -c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, -d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- -f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": -"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in -e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); diff --git a/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/protocol/batadv.js b/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/protocol/batadv.js deleted file mode 100644 index 837ba18..0000000 --- a/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/protocol/batadv.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; -'require network'; - -return network.registerProtocol('batadv', { - getI18n: function() { - return _('Batman'); - } -}); diff --git a/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/protocol/batadv_hardif.js b/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/protocol/batadv_hardif.js deleted file mode 100644 index 545e63d..0000000 --- a/rooter/0mesh/mesh-mesh/files/www/luci-static/resources/protocol/batadv_hardif.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; -'require network'; - -return network.registerProtocol('batadv_hardif', { - getI18n: function() { - return _('Mesh'); - } -}); diff --git a/rooter/0mesh/mesh-wpad/Makefile b/rooter/0mesh/mesh-wpad/Makefile deleted file mode 100644 index dcb961e..0000000 --- a/rooter/0mesh/mesh-wpad/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -#Owned by DairyMan@Whirlpool -# -#Copyright GNU act. -include $(TOPDIR)/rules.mk - -PKG_NAME:=mesh-wpad -PKG_VERSION:=1.000 -PKG_RELEASE:=1 - -PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool -include $(INCLUDE_DIR)/package.mk - -define Package/mesh-wpad - SECTION:=utils - CATEGORY:=ROOter - SUBMENU:=Mesh Support - DEPENDS:=+wpad-mesh-openssl - TITLE:=Support for Mesh routing - PKGARCH:=all -endef - -define Package/mesh-wpad/description - Helper scripts to install Meshing -endef - -define Build/Compile -endef - -$(eval $(call BuildPackage,mesh-wpad)) diff --git a/rooter/0optionalapps/bwallocate/files/usr/lib/lua/luci/model/cbi/fullmenu/bwmenu.lua b/rooter/0optionalapps/bwallocate/files/usr/lib/lua/luci/model/cbi/fullmenu/bwmenu.lua index 4b4d4ab..9fcc8d9 100644 --- a/rooter/0optionalapps/bwallocate/files/usr/lib/lua/luci/model/cbi/fullmenu/bwmenu.lua +++ b/rooter/0optionalapps/bwallocate/files/usr/lib/lua/luci/model/cbi/fullmenu/bwmenu.lua @@ -238,7 +238,7 @@ btn.inputtitle = translate("Send Test of Text or Email") btn.inputstyle = "apply" btn:depends("text", "1") function btn.write() - luci.sys.call("/usr/lib/bwmon/dotext.sh") + luci.sys.call("/usr/lib/bwmon/dotext.sh &") end b4 = s:option(DummyValue, "blank", " "); diff --git a/rooter/0optionalapps/bwmon/files/etc/init.d/bwmon b/rooter/0optionalapps/bwmon/files/etc/init.d/bwmon index 925a8ea..0dc2498 100644 --- a/rooter/0optionalapps/bwmon/files/etc/init.d/bwmon +++ b/rooter/0optionalapps/bwmon/files/etc/init.d/bwmon @@ -6,7 +6,7 @@ START=60 start() { WX=$(uci -q get custom.bwallocate.lock) if [ "$WX" = "1" ]; then - uci set bwmon.general.enabled=$enable + uci set bwmon.general.enabled=1 uci commit bwmon fi /usr/lib/bwmon/wrtbwmon.sh & diff --git a/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/amtleft.lua b/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/amtleft.lua index ee530db..f2f8a17 100644 --- a/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/amtleft.lua +++ b/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/amtleft.lua @@ -23,8 +23,14 @@ end aamt = arg[1] uamt = arg[2] -amt = aamt - uamt -amts = calc(amt) +if uamt > aamt then + amt = uamt - aamt + amts = calc(amt) + amts = "-" .. amts +else + amt = aamt - uamt + amts = calc(math.abs(amt)) +end tfile = io.open("/tmp/amtleft", "w") tfile:write(amts, "\n") tfile:close() \ No newline at end of file diff --git a/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/dataper.lua b/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/dataper.lua index d5d0527..a287094 100644 --- a/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/dataper.lua +++ b/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/dataper.lua @@ -4,10 +4,11 @@ alloc = arg[1] -- allocate increment in GB per = arg[2] -- fixed percentage in GB used = arg[3] -- amt used in Kb -used = used / 10000 -- used in GB -percent = used / alloc +--used = used / 10000 -- used in GB +percent = (used / alloc) * 100 + running = "0" -if percent >= per then +if percent >= tonumber(per) then running = "1" end diff --git a/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/textbw.sh b/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/textbw.sh index 5d9d589..ed85caa 100644 --- a/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/textbw.sh +++ b/rooter/0optionalapps/bwmon/files/usr/lib/bwmon/textbw.sh @@ -2,7 +2,7 @@ . /lib/functions.sh log() { - logger -t "TEXTING" "$@" + modlog "TEXTING" "$@" } checktime() { @@ -96,7 +96,7 @@ checkper() { istime=$(checktime) if [ $istime = '1' ]; then prev=$(uci -q get custom.texting.used) - per=$(uci -q get custom.bwallocate.percent) + per=$(uci -q get custom.texting.percent) persent=$(uci -q get custom.bwallocate.persent) if [ "$persent" != "1" ]; then getbw @@ -141,7 +141,7 @@ do if [ $running = "1" ]; then EN=$(uci -q get custom.texting.text) if [ $EN = "1" ]; then - /usr/lib/bwmon/dotext.sh + /usr/lib/bwmon/dotext.sh & sleep $delay fi else diff --git a/rooter/0optionalapps/ext-blacklist/files/usr/lib/lua/luci/controller/blacklist.lua b/rooter/0optionalapps/ext-blacklist/files/usr/lib/lua/luci/controller/blacklist.lua index d132021..5797a2d 100644 --- a/rooter/0optionalapps/ext-blacklist/files/usr/lib/lua/luci/controller/blacklist.lua +++ b/rooter/0optionalapps/ext-blacklist/files/usr/lib/lua/luci/controller/blacklist.lua @@ -1,13 +1,10 @@ module("luci.controller.blacklist", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() local page local lock = luci.model.uci.cursor():get("custom", "menu", "full") - --if lock == "1" then - page = entry({"admin", "adminmenu", "blacklist"}, cbi("blacklist"), translate("Blacklist by Mac"), 10) + if lock == "1" then + page = entry({"admin", "adminmenu", "blacklist"}, cbi("blacklist"), "---Blacklist by Mac", 10) page.dependent = true - --end + end end diff --git a/rooter/0optionalapps/ext-domain/Makefile b/rooter/0optionalapps/ext-domain/Makefile index 66e3d59..103fa98 100644 --- a/rooter/0optionalapps/ext-domain/Makefile +++ b/rooter/0optionalapps/ext-domain/Makefile @@ -3,34 +3,33 @@ #Copyright GNU act. include $(TOPDIR)/rules.mk -PKG_NAME:=ext-domain +PKG_NAME:=ext-blockport PKG_VERSION:=1.000 PKG_RELEASE:=1 PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool include $(INCLUDE_DIR)/package.mk -define Package/ext-domain +define Package/ext-blockport SECTION:=utils CATEGORY:=ROOter SUBMENU:=Optional Applications - DEPENDS:=+dnsmasq-full +ipset - TITLE:=Domain Filter + TITLE:=Install Port Blocking PKGARCH:=all endef -define Package/ext-domain/description - Helper scripts to install Domain Filter on ROOter +define Package/ext-blockport/description + Helper scripts to install Port Blocking endef define Build/Compile endef -define Package/ext-domain/install +define Package/ext-blockport/install $(CP) ./files/* $(1)/ endef -$(eval $(call BuildPackage,ext-domain)) +$(eval $(call BuildPackage,ext-blockport)) diff --git a/rooter/0optionalapps/ext-domain/files/etc/config/blockport b/rooter/0optionalapps/ext-domain/files/etc/config/blockport new file mode 100644 index 0000000..8e69716 --- /dev/null +++ b/rooter/0optionalapps/ext-domain/files/etc/config/blockport @@ -0,0 +1,4 @@ + +config port 'port' + + diff --git a/rooter/0optionalapps/ext-domain/files/etc/config/filter b/rooter/0optionalapps/ext-domain/files/etc/config/filter deleted file mode 100644 index 5eb7a3b..0000000 --- a/rooter/0optionalapps/ext-domain/files/etc/config/filter +++ /dev/null @@ -1 +0,0 @@ -config filter filter diff --git a/rooter/0optionalapps/ext-domain/files/etc/init.d/domain b/rooter/0optionalapps/ext-domain/files/etc/init.d/domain deleted file mode 100644 index 2e99572..0000000 --- a/rooter/0optionalapps/ext-domain/files/etc/init.d/domain +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=99 - -log() { - logger -t "Domain Filter " "$@" -} - -start() -{ - ff=$(uci -q get firewall.filter) - if [ -z $ff ]; then - uci set firewall.filter="ipset" - uci set firewall.filter.name="filter" - uci set firewall.filter.family="ipv4" - uci set firewall.filter.storage="hash" - uci set firewall.filter.match="ip" - uci set firewall.filter6="ipset" - uci set firewall.filter6.name="filter6" - uci set firewall.filter6.family="ipv6" - uci set firewall.filter6.storage="hash" - uci set firewall.filter6.match="ip" - - # Filter LAN client traffic with IP sets - uci set firewall.filter_fwd="rule" - uci set firewall.filter_fwd.name="Filter-IPset-DNS-Forward" - uci set firewall.filter_fwd.src="lan" - uci set firewall.filter_fwd.dest="wan" - uci set firewall.filter_fwd.ipset="filter dest" - uci set firewall.filter_fwd.family="ipv4" - uci set firewall.filter_fwd.proto="all" - uci set firewall.filter_fwd.target="REJECT" - uci set firewall.filter6_fwd="rule" - uci set firewall.filter6_fwd.name="Filter6-IPset-DNS-Forward" - uci set firewall.filter6_fwd.src="lan" - uci set firewall.filter6_fwd.dest="wan" - uci set firewall.filter6_fwd.ipset="filter6 dest" - uci set firewall.filter6_fwd.family="ipv6" - uci set firewall.filter6_fwd.proto="all" - uci set firewall.filter6_fwd.target="REJECT" - - uci commit firewall - /etc/init.d/firewall restart - fi - /usr/lib/domain/filter.sh -} \ No newline at end of file diff --git a/rooter/0optionalapps/ext-domain/files/usr/lib/blockport/blockport.sh b/rooter/0optionalapps/ext-domain/files/usr/lib/blockport/blockport.sh new file mode 100644 index 0000000..6965bc0 --- /dev/null +++ b/rooter/0optionalapps/ext-domain/files/usr/lib/blockport/blockport.sh @@ -0,0 +1,37 @@ +#!/bin/sh +. /lib/functions.sh + +config="firewall" + +do_block_remove() { + config_get name $1 name + if [ "$name" = "Block_src" ]; then + uci delete $config".""$1" + fi +} + +handle_port() { + echo $1 + uci add $config rule + uci set $config.@rule[-1].src='lan' + uci set $config.@rule[-1].family='ipv4' + uci set $config.@rule[-1].dest='wan' + uci set $config.@rule[-1].target='DROP' + uci set $config.@rule[-1].proto='tcp' + uci set $config.@rule[-1].src_port="$1" + uci set $config.@rule[-1].name='Block_src' +} + +do_port() { + config_list_foreach "$1" block handle_port +} + +sleep 8 +config_load $config +config_foreach do_block_remove rule + +config_load blockport +config_foreach do_port port +uci commit $config +/etc/init.d/firewall restart 2>/dev/null + diff --git a/rooter/0optionalapps/ext-domain/files/usr/lib/domain/filter.sh b/rooter/0optionalapps/ext-domain/files/usr/lib/domain/filter.sh deleted file mode 100644 index 1bb349c..0000000 --- a/rooter/0optionalapps/ext-domain/files/usr/lib/domain/filter.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Domain Filter " "$@" -} - -handle_ipset() { - local ips=$1 - uci add_list dhcp.@dnsmasq[0].ipset='/'$ips'/filter,filter6' -} - -do_ipset() { - local config=$1 - local ipset - - config_list_foreach "$config" ipset handle_ipset -} - -sleep 3 - -uci -q delete dhcp.@dnsmasq[0].ipset -config_load filter -config_foreach do_ipset filter -uci commit dhcp -/etc/init.d/dnsmasq restart \ No newline at end of file diff --git a/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/controller/blockport.lua b/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/controller/blockport.lua new file mode 100644 index 0000000..fca343d --- /dev/null +++ b/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/controller/blockport.lua @@ -0,0 +1,12 @@ +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.blockport", package.seeall) + +function index() + local lock = luci.model.uci.cursor():get("custom", "menu", "full") + if lock == "1" then + local page + page = entry({"admin", "adminmenu", "blockport"}, cbi("portblk"), _("---Port Blocking"), 10) + page.dependent = true + end +end diff --git a/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/controller/domain.lua b/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/controller/domain.lua deleted file mode 100644 index 5bca115..0000000 --- a/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/controller/domain.lua +++ /dev/null @@ -1,15 +0,0 @@ --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.domain", package.seeall) - -I18N = require "luci.i18n" -translate = I18N.translate - -function index() - local lock = luci.model.uci.cursor():get("custom", "menu", "full") - --if lock == "1" then - local page - page = entry({"admin", "adminmenu", "domain"}, cbi("domainfltr"), _(translate("Domain Filter")), 9) - page.dependent = true - --end -end diff --git a/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/model/cbi/domainfltr.lua b/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/model/cbi/portblk.lua similarity index 50% rename from rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/model/cbi/domainfltr.lua rename to rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/model/cbi/portblk.lua index 9c898e5..73cd1ea 100644 --- a/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/model/cbi/domainfltr.lua +++ b/rooter/0optionalapps/ext-domain/files/usr/lib/lua/luci/model/cbi/portblk.lua @@ -5,17 +5,17 @@ local zones = require "luci.sys.zoneinfo" local fs = require "nixio.fs" local conf = require "luci.config" -m = Map("filter", translate("Domain Filter"), translate("Block traffic to specified URLs")) +m = Map("blockport", translate("Port Blocking"), translate("Block traffic using specific ports")) m.on_after_save = function(self) - luci.sys.call("/usr/lib/domain/filter.sh &") + luci.sys.call("/usr/lib/blockport/blockport.sh &") end -s = m:section(TypedSection, "filter", translate("Block List")) +s = m:section(TypedSection, "port", translate("Block Port List")) s.anonymous = true s.addremove = false -s:option(DynamicList, "ipset", translate("Domain URLs")) +s:option(DynamicList, "block", translate("Ports")) return m \ No newline at end of file diff --git a/rooter/0optionalapps/ext-menu/Makefile b/rooter/0optionalapps/ext-menu/Makefile deleted file mode 100644 index 0dee3f0..0000000 --- a/rooter/0optionalapps/ext-menu/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -#Owned by DairyMan@Whirlpool -# -#Copyright GNU act. -include $(TOPDIR)/rules.mk - -PKG_NAME:=ext-menu -PKG_VERSION:=1.000 -PKG_RELEASE:=1 - -PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool -include $(INCLUDE_DIR)/package.mk - -define Package/ext-menu - SECTION:=utils - CATEGORY:=ROOter - SUBMENU:=Optional Applications - TITLE:=Menu Selection - PKGARCH:=all -endef - -define Package/ext-menu/description - Helper scripts to install Menu Selection on ROOter -endef - - -define Build/Compile -endef - -define Package/ext-menu/install - $(CP) ./files/* $(1)/ - - -endef - -$(eval $(call BuildPackage,ext-menu)) diff --git a/rooter/0optionalapps/ext-menu/files/etc/uci-defaults/63-menu b/rooter/0optionalapps/ext-menu/files/etc/uci-defaults/63-menu deleted file mode 100644 index d5375bd..0000000 --- a/rooter/0optionalapps/ext-menu/files/etc/uci-defaults/63-menu +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -fv=$(uci -q get custom.menu.full) -if [ $fv = "0" ]; then - fv="1" -else - fv="0" -fi - -/usr/lib/fullmenu/setmenu.sh $fv diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/firewall.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/firewall.lua deleted file mode 100644 index d761109..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/firewall.lua +++ /dev/null @@ -1,28 +0,0 @@ -module("luci.controller.firewall", package.seeall) - -function index() - entry({"admin", "network", "firewall"}, - alias("admin", "network", "firewall", "zones"), - _("Firewall"), 60) - - entry({"admin", "network", "firewall", "zones"}, - view("firewall/zones"), _("General Settings"), 10) - - entry({"admin", "network", "firewall", "forwards"}, - view("firewall/forwards"), _("Port Forwards"), 20) - - entry({"admin", "network", "firewall", "rules"}, - view("firewall/rules"), _("Traffic Rules"), 30) - - entry({"admin", "network", "firewall", "snats"}, - view("firewall/snats"), _("NAT Rules"), 40) - - entry({"admin", "network", "firewall", "custom"}, - view("firewall/custom"), _("Custom Rules"), 45).leaf = true - - if nixio.fs.access("/etc/config/modem") then - entry({"admin", "network", "firewall", "ttl"}, - cbi("firewall/ttlx"), - _("Custom TTL Settings"), 50).leaf = true - end -end diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/luci-mod-status.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/luci-mod-status.json deleted file mode 100644 index 0dcf6e8..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/luci-mod-status.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "admin/status/overview": { - "title": "Overview", - "order": 1, - "action": { - "type": "template", - "path": "admin_status/index" - } - }, - - "admin/status/iptables": { - "title": "Firewall", - "order": 2, - "action": { - "type": "view", - "path": "status/iptables" - } - }, - - "admin/status/routes": { - "title": "Routes", - "order": 3, - "action": { - "type": "view", - "path": "status/routes" - } - }, - - "admin/status/syslog": { - "title": "System Log", - "order": 4, - "action": { - "type": "view", - "path": "status/syslog" - } - }, - - "admin/status/dmesg": { - "title": "Kernel Log", - "order": 5, - "action": { - "type": "view", - "path": "status/dmesg" - } - }, - - "admin/status/processes": { - "title": "Processes", - "order": 6, - "action": { - "type": "view", - "path": "status/processes" - } - }, - - "admin/status/realtime": { - "title": "Realtime Graphs", - "order": 7, - "action": { - "type": "alias", - "path": "admin/status/realtime/load" - } - }, - - "admin/status/realtime/load": { - "title": "Load", - "order": 1, - "action": { - "type": "view", - "path": "status/load" - } - }, - - "admin/status/realtime/bandwidth": { - "title": "Traffic", - "order": 2, - "action": { - "type": "view", - "path": "status/bandwidth" - } - }, - - "admin/status/realtime/wireless": { - "title": "Wireless", - "order": 3, - "action": { - "type": "view", - "path": "status/wireless" - }, - "depends": { - "uci": { "wireless": { "@wifi-device": true } } - } - }, - - "admin/status/realtime/connections": { - "title": "Connections", - "order": 4, - "action": { - "type": "view", - "path": "status/connections" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/luci-mod-system.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/luci-mod-system.json deleted file mode 100644 index ef21d6e..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/luci-mod-system.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "admin/system/system": { - "title": "System", - "order": 1, - "action": { - "type": "view", - "path": "system/system" - } - }, - - "admin/system/admin": { - "title": "Administration", - "order": 2, - "action": { - "type": "firstchild" - } - }, - - "admin/system/admin/password": { - "title": "Router Password", - "order": 1, - "action": { - "type": "view", - "path": "system/password" - } - }, - - "admin/system/admin/dropbear": { - "title": "SSH Access", - "order": 2, - "action": { - "type": "view", - "path": "system/dropbear" - }, - "depends": { - "fs": { "/usr/sbin/dropbear": "executable" } - } - }, - - "admin/system/admin/sshkeys": { - "title": "SSH-Keys", - "order": 3, - "action": { - "type": "view", - "path": "system/sshkeys" - }, - "depends": { - "fs": { "/usr/sbin/dropbear": "executable" } - } - }, - - "admin/system/startup": { - "title": "Startup", - "order": 45, - "action": { - "type": "view", - "path": "system/startup" - } - }, - - "admin/system/crontab": { - "title": "Scheduled Tasks", - "order": 46, - "action": { - "type": "view", - "path": "system/crontab" - } - }, - - "admin/system/mounts": { - "title": "Mount Points", - "order": 50, - "action": { - "type": "view", - "path": "system/mounts" - }, - "depends": { - "fs": { "/sbin/block": "executable" } - } - }, - - "admin/system/leds": { - "title": "LED Configuration", - "order": 60, - "action": { - "type": "view", - "path": "system/leds" - }, - "depends": { - "fs": { "/sys/class/leds": "directory" } - } - }, - - "admin/system/flash": { - "title": "Backup / Flash Firmware", - "order": 70, - "action": { - "type": "view", - "path": "system/flash" - } - }, - - "admin/system/reboot": { - "title": "Reboot", - "order": 90, - "action": { - "type": "view", - "path": "system/reboot" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/network.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/network.lua deleted file mode 100644 index b34ec4f..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/network.lua +++ /dev/null @@ -1,44 +0,0 @@ --- Copyright 2008 Steven Barth --- Copyright 2011-2018 Jo-Philipp Wich --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.admin.network", package.seeall) - -function index() - local page - --- if page.inreq then - page = entry({"admin", "network", "switch"}, view("network/switch"), _("Switch"), 20) - page.uci_depends = { network = { ["@switch[0]"] = "switch" } } - - page = entry({"admin", "network", "wireless"}, view("network/wireless"), _('Wireless'), 15) - page.uci_depends = { wireless = { ["@wifi-device[0]"] = "wifi-device" } } - page.leaf = true - - page = entry({"admin", "network", "network"}, view("network/interfaces"), _("Interfaces"), 10) - page.leaf = true - page.subindex = true - - page = node("admin", "network", "dhcp") - page.uci_depends = { dhcp = true } - page.target = view("network/dhcp") - page.title = _("DHCP and DNS") - page.order = 30 - - page = node("admin", "network", "hosts") - page.uci_depends = { dhcp = true } - page.target = view("network/hosts") - page.title = _("Hostnames") - page.order = 40 - - page = node("admin", "network", "routes") - page.target = view("network/routes") - page.title = _("Static Routes") - page.order = 50 - - page = node("admin", "network", "diagnostics") - page.target = view("network/diagnostics") - page.title = _("Diagnostics") - page.order = 60 --- end -end diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/opkg.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/opkg.lua deleted file mode 100644 index 29c9a08..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full19/opkg.lua +++ /dev/null @@ -1,117 +0,0 @@ --- Copyright 2018 Jo-Philipp Wich --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.opkg", package.seeall) - -function index() - entry({"admin", "system", "opkg"}, template("opkg"), _("Software"), 30) - entry({"admin", "system", "opkg", "list"}, call("action_list")).leaf = true - entry({"admin", "system", "opkg", "exec"}, post("action_exec")).leaf = true - entry({"admin", "system", "opkg", "statvfs"}, call("action_statvfs")).leaf = true - entry({"admin", "system", "opkg", "config"}, post_on({ data = true }, "action_config")).leaf = true -end - -function action_list(mode) - local util = require "luci.util" - local cmd - - if mode == "installed" then - cmd = { "/bin/cat", "/usr/lib/opkg/status" } - else - local lists_dir = nil - - local fd = io.popen([[sed -rne 's#^lists_dir \S+ (\S+)#\1#p' /etc/opkg.conf /etc/opkg/*.conf 2>/dev/null]], "r") - if fd then - lists_dir = fd:read("*l") - fd:close() - end - - if not lists_dir or #lists_dir == "" then - lists_dir = "/tmp/opkg-lists" - end - - cmd = { "/bin/sh", "-c", [[find %s -type f '!' -name '*.sig' | xargs -r gzip -cd]] % util.shellquote(lists_dir) } - end - - luci.http.prepare_content("text/plain; charset=utf-8") - luci.sys.process.exec(cmd, luci.http.write) -end - -function action_exec(command, package) - local sys = require "luci.sys" - local cmd = { "/bin/opkg", "--force-removal-of-dependent-packages" } - local pkg = luci.http.formvalue("package") - - if luci.http.formvalue("autoremove") == "true" then - cmd[#cmd + 1] = "--autoremove" - end - - if luci.http.formvalue("overwrite") == "true" then - cmd[#cmd + 1] = "--force-overwrite" - end - - cmd[#cmd + 1] = command - - if pkg then - cmd[#cmd + 1] = pkg - end - - luci.http.prepare_content("application/json") - luci.http.write_json(sys.process.exec(cmd, true, true)) -end - -function action_statvfs() - local fs = require "nixio.fs" - - luci.http.prepare_content("application/json") - luci.http.write_json(fs.statvfs("/") or {}) -end - -function action_config() - local fs = require "nixio.fs" - local js = require "luci.jsonc" - local data = luci.http.formvalue("data") - - if data then - data = js.parse(data) - - if not data then - luci.http.status(400, "Bad Request") - return - end - - local file, content - for file, content in pairs(data) do - if type(content) ~= "string" or - (file ~= "opkg.conf" and not file:match("^opkg/[^/]+%.conf$")) - then - luci.http.status(400, "Bad Request") - return - end - - local path = "/etc/%s" % file - if not fs.access(path, "w") then - luci.http.status(403, "Permission denied") - return - end - - fs.writefile(path, content:gsub("\r\n", "\n")) - end - - luci.http.status(204, "Saved") - else - local rv = { ["opkg.conf"] = fs.readfile("/etc/opkg.conf") } - local entries = fs.dir("/etc/opkg") - if entries then - local entry - for entry in entries do - if entry:match("%.conf$") then - rv["opkg/%s" % entry] = fs.readfile("/etc/opkg/%s" % entry) - end - end - end - - luci.http.prepare_content("application/json") - luci.http.write_json(rv) - end -end diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-app-firewall.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-app-firewall.json deleted file mode 100644 index 4672a27..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-app-firewall.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "admin/network/firewall": { - "title": "Firewall", - "order": 60, - "action": { - "type": "alias", - "path": "admin/network/firewall/zones" - }, - "depends": { - "acl": [ "luci-app-firewall" ], - "fs": { "/sbin/fw3": "executable" }, - "uci": { "firewall": true } - } - }, - - "admin/network/firewall/zones": { - "title": "General Settings", - "order": 10, - "action": { - "type": "view", - "path": "firewall/zones" - } - }, - - "admin/network/firewall/forwards": { - "title": "Port Forwards", - "order": 20, - "action": { - "type": "view", - "path": "firewall/forwards" - } - }, - - "admin/network/firewall/rules": { - "title": "Traffic Rules", - "order": 30, - "action": { - "type": "view", - "path": "firewall/rules" - } - }, - - "admin/network/firewall/snats": { - "title": "NAT Rules", - "order": 40, - "action": { - "type": "view", - "path": "firewall/snats" - } - }, - - - "admin/network/firewall/custom": { - "title": "Custom Rules", - "order": 50, - "action": { - "type": "view", - "path": "firewall/custom" - } - }, - - "admin/network/firewall/customttl": { - "title": "Custom TTL Settings", - "order": 55, - "action": { - "type": "cbi", - "path": "firewall/ttlx" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-app-opkg.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-app-opkg.json deleted file mode 100644 index 3d06a25..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-app-opkg.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "admin/system/opkg": { - "title": "Software", - "order": 30, - "action": { - "type": "view", - "path": "opkg" - }, - "depends": { - "acl": [ "luci-app-opkg" ] - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-network.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-network.json deleted file mode 100644 index 188c695..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-network.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "admin/network/switch": { - "title": "Switch", - "order": 20, - "action": { - "type": "view", - "path": "network/switch" - }, - "depends": { - "acl": [ "luci-mod-network-config" ], - "fs": { "/sbin/swconfig": "executable" }, - "uci": { "network": { "@switch": true } } - } - }, - - "admin/network/wireless": { - "title": "Wireless", - "order": 15, - "action": { - "type": "view", - "path": "network/wireless" - }, - "depends": { - "acl": [ "luci-mod-network-config" ], - "uci": { "wireless": { "@wifi-device": true } } - } - }, - - "admin/network/remote_addr/*": { - "action": { - "type": "call", - "module": "luci.controller.admin.network", - "function": "remote_addr" - } - }, - - "admin/network/network": { - "title": "Interfaces", - "order": 10, - "action": { - "type": "view", - "path": "network/interfaces" - }, - "depends": { - "acl": [ "luci-mod-network-config" ] - } - }, - - "admin/network/dhcp": { - "title": "DHCP and DNS", - "order": 30, - "action": { - "type": "view", - "path": "network/dhcp" - }, - "depends": { - "acl": [ "luci-mod-network-dhcp" ], - "uci": { "dhcp": true } - } - }, - - "admin/network/hosts": { - "title": "Hostnames", - "order": 40, - "action": { - "type": "view", - "path": "network/hosts" - }, - "depends": { - "acl": [ "luci-mod-network-dhcp" ], - "uci": { "dhcp": true } - } - }, - - "admin/network/routes": { - "title": "Static Routes", - "order": 50, - "action": { - "type": "view", - "path": "network/routes" - }, - "depends": { - "acl": [ "luci-mod-network-config" ] - } - }, - - "admin/network/diagnostics": { - "title": "Diagnostics", - "order": 60, - "action": { - "type": "view", - "path": "network/diagnostics" - }, - "depends": { - "acl": [ "luci-mod-network-diagnostics" ] - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-status.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-status.json deleted file mode 100644 index 0f066e6..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-status.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "admin/status/overview": { - "title": "Overview", - "order": 1, - "action": { - "type": "template", - "path": "admin_status/index" - }, - "depends": { - "acl": [ "luci-mod-status-index" ] - } - }, - - "admin/status/iptables": { - "title": "Firewall", - "order": 2, - "action": { - "type": "view", - "path": "status/iptables" - }, - "depends": { - "acl": [ "luci-mod-status-firewall" ] - } - }, - - "admin/status/routes": { - "title": "Routes", - "order": 3, - "action": { - "type": "view", - "path": "status/routes" - }, - "depends": { - "acl": [ "luci-mod-status-routes" ] - } - }, - - "admin/status/syslog": { - "title": "System Log", - "order": 4, - "action": { - "type": "view", - "path": "status/syslog" - }, - "depends": { - "acl": [ "luci-mod-status-logs" ] - } - }, - - "admin/status/dmesg": { - "title": "Kernel Log", - "order": 5, - "action": { - "type": "view", - "path": "status/dmesg" - }, - "depends": { - "acl": [ "luci-mod-status-logs" ] - } - }, - - "admin/status/processes": { - "title": "Processes", - "order": 6, - "action": { - "type": "view", - "path": "status/processes" - }, - "depends": { - "acl": [ "luci-mod-status-processes" ] - } - }, - - "admin/status/channel_analysis": { - "title": "Channel Analysis", - "order": 7, - "action": { - "type": "view", - "path": "status/channel_analysis" - }, - "depends": { - "acl": [ "luci-mod-status-channel_analysis" ], - "uci": { "wireless": { "@wifi-device": true } } - } - }, - - "admin/status/realtime": { - "title": "Realtime Graphs", - "order": 7, - "action": { - "type": "alias", - "path": "admin/status/realtime/load" - }, - "depends": { - "acl": [ "luci-mod-status-realtime" ] - } - }, - - "admin/status/realtime/load": { - "title": "Load", - "order": 1, - "action": { - "type": "view", - "path": "status/load" - } - }, - - "admin/status/realtime/bandwidth": { - "title": "Traffic", - "order": 2, - "action": { - "type": "view", - "path": "status/bandwidth" - } - }, - - "admin/status/realtime/wireless": { - "title": "Wireless", - "order": 3, - "action": { - "type": "view", - "path": "status/wireless" - }, - "depends": { - "uci": { "wireless": { "@wifi-device": true } } - } - }, - - "admin/status/realtime/connections": { - "title": "Connections", - "order": 4, - "action": { - "type": "view", - "path": "status/connections" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-system.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-system.json deleted file mode 100644 index 4022e0c..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/full21/luci-mod-system.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "admin/system/system": { - "title": "System", - "order": 1, - "action": { - "type": "view", - "path": "system/system" - }, - "depends": { - "acl": [ "luci-mod-system-config" ] - } - }, - - "admin/system/admin": { - "title": "Administration", - "order": 2, - "action": { - "type": "firstchild" - }, - "depends": { - "acl": [ "luci-mod-system-config", "luci-mod-system-ssh" ] - } - }, - - "admin/system/admin/password": { - "title": "Router Password", - "order": 1, - "action": { - "type": "view", - "path": "system/password" - }, - "depends": { - "acl": [ "luci-mod-system-config" ] - } - }, - - "admin/system/admin/dropbear": { - "title": "SSH Access", - "order": 2, - "action": { - "type": "view", - "path": "system/dropbear" - }, - "depends": { - "acl": [ "luci-mod-system-ssh" ], - "fs": { "/usr/sbin/dropbear": "executable" } - } - }, - - "admin/system/admin/sshkeys": { - "title": "SSH-Keys", - "order": 3, - "action": { - "type": "view", - "path": "system/sshkeys" - }, - "depends": { - "acl": [ "luci-mod-system-ssh" ], - "fs": { "/usr/sbin/dropbear": "executable" } - } - }, - - "admin/system/startup": { - "title": "Startup", - "order": 45, - "action": { - "type": "view", - "path": "system/startup" - }, - "depends": { - "acl": [ "luci-mod-system-init" ] - } - }, - - "admin/system/crontab": { - "title": "Scheduled Tasks", - "order": 46, - "action": { - "type": "view", - "path": "system/crontab" - }, - "depends": { - "acl": [ "luci-mod-system-cron" ] - } - }, - - "admin/system/mounts": { - "title": "Mount Points", - "order": 50, - "action": { - "type": "view", - "path": "system/mounts" - }, - "depends": { - "acl": [ "luci-mod-system-mounts" ], - "fs": { "/sbin/block": "executable" } - } - }, - - "admin/system/leds": { - "title": "LED Configuration", - "order": 60, - "action": { - "type": "view", - "path": "system/leds" - }, - "depends": { - "acl": [ "luci-mod-system-config" ], - "fs": { "/sys/class/leds": "directory" } - } - }, - - "admin/system/flash": { - "title": "Backup / Flash Firmware", - "order": 70, - "action": { - "type": "view", - "path": "system/flash" - }, - "depends": { - "acl": [ "luci-mod-system-flash" ] - } - }, - - "admin/system/reboot": { - "title": "Reboot", - "order": 90, - "action": { - "type": "view", - "path": "system/reboot" - }, - "depends": { - "acl": [ "luci-mod-system-reboot" ] - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/firewall.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/firewall.lua deleted file mode 100644 index d761109..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/firewall.lua +++ /dev/null @@ -1,28 +0,0 @@ -module("luci.controller.firewall", package.seeall) - -function index() - entry({"admin", "network", "firewall"}, - alias("admin", "network", "firewall", "zones"), - _("Firewall"), 60) - - entry({"admin", "network", "firewall", "zones"}, - view("firewall/zones"), _("General Settings"), 10) - - entry({"admin", "network", "firewall", "forwards"}, - view("firewall/forwards"), _("Port Forwards"), 20) - - entry({"admin", "network", "firewall", "rules"}, - view("firewall/rules"), _("Traffic Rules"), 30) - - entry({"admin", "network", "firewall", "snats"}, - view("firewall/snats"), _("NAT Rules"), 40) - - entry({"admin", "network", "firewall", "custom"}, - view("firewall/custom"), _("Custom Rules"), 45).leaf = true - - if nixio.fs.access("/etc/config/modem") then - entry({"admin", "network", "firewall", "ttl"}, - cbi("firewall/ttlx"), - _("Custom TTL Settings"), 50).leaf = true - end -end diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/luci-mod-status.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/luci-mod-status.json deleted file mode 100644 index 7e664bf..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/luci-mod-status.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "admin/status/overview": { - "title": "Overview", - "order": 1, - "action": { - "type": "template", - "path": "admin_status/index" - } - }, - - "admin/status/syslog": { - "title": "System Log", - "order": 4, - "action": { - "type": "view", - "path": "status/syslog" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/luci-mod-system.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/luci-mod-system.json deleted file mode 100644 index f220775..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/luci-mod-system.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "admin/system/system": { - "title": "System", - "order": 1, - "action": { - "type": "view", - "path": "system/system" - } - }, - - "admin/system/admin": { - "title": "Administration", - "order": 2, - "action": { - "type": "firstchild" - } - }, - - "admin/system/admin/password": { - "title": "Router Password", - "order": 1, - "action": { - "type": "view", - "path": "system/password" - } - }, - - "admin/system/flash": { - "title": "Flash Firmware", - "order": 70, - "action": { - "type": "view", - "path": "system/flash" - } - }, - - "admin/system/reboot": { - "title": "Reboot", - "order": 90, - "action": { - "type": "view", - "path": "system/reboot" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/network.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/network.lua deleted file mode 100644 index b34ec4f..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/network.lua +++ /dev/null @@ -1,44 +0,0 @@ --- Copyright 2008 Steven Barth --- Copyright 2011-2018 Jo-Philipp Wich --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.admin.network", package.seeall) - -function index() - local page - --- if page.inreq then - page = entry({"admin", "network", "switch"}, view("network/switch"), _("Switch"), 20) - page.uci_depends = { network = { ["@switch[0]"] = "switch" } } - - page = entry({"admin", "network", "wireless"}, view("network/wireless"), _('Wireless'), 15) - page.uci_depends = { wireless = { ["@wifi-device[0]"] = "wifi-device" } } - page.leaf = true - - page = entry({"admin", "network", "network"}, view("network/interfaces"), _("Interfaces"), 10) - page.leaf = true - page.subindex = true - - page = node("admin", "network", "dhcp") - page.uci_depends = { dhcp = true } - page.target = view("network/dhcp") - page.title = _("DHCP and DNS") - page.order = 30 - - page = node("admin", "network", "hosts") - page.uci_depends = { dhcp = true } - page.target = view("network/hosts") - page.title = _("Hostnames") - page.order = 40 - - page = node("admin", "network", "routes") - page.target = view("network/routes") - page.title = _("Static Routes") - page.order = 50 - - page = node("admin", "network", "diagnostics") - page.target = view("network/diagnostics") - page.title = _("Diagnostics") - page.order = 60 --- end -end diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/opkg.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/opkg.lua deleted file mode 100644 index 29c9a08..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited19/opkg.lua +++ /dev/null @@ -1,117 +0,0 @@ --- Copyright 2018 Jo-Philipp Wich --- Licensed to the public under the Apache License 2.0. - -module("luci.controller.opkg", package.seeall) - -function index() - entry({"admin", "system", "opkg"}, template("opkg"), _("Software"), 30) - entry({"admin", "system", "opkg", "list"}, call("action_list")).leaf = true - entry({"admin", "system", "opkg", "exec"}, post("action_exec")).leaf = true - entry({"admin", "system", "opkg", "statvfs"}, call("action_statvfs")).leaf = true - entry({"admin", "system", "opkg", "config"}, post_on({ data = true }, "action_config")).leaf = true -end - -function action_list(mode) - local util = require "luci.util" - local cmd - - if mode == "installed" then - cmd = { "/bin/cat", "/usr/lib/opkg/status" } - else - local lists_dir = nil - - local fd = io.popen([[sed -rne 's#^lists_dir \S+ (\S+)#\1#p' /etc/opkg.conf /etc/opkg/*.conf 2>/dev/null]], "r") - if fd then - lists_dir = fd:read("*l") - fd:close() - end - - if not lists_dir or #lists_dir == "" then - lists_dir = "/tmp/opkg-lists" - end - - cmd = { "/bin/sh", "-c", [[find %s -type f '!' -name '*.sig' | xargs -r gzip -cd]] % util.shellquote(lists_dir) } - end - - luci.http.prepare_content("text/plain; charset=utf-8") - luci.sys.process.exec(cmd, luci.http.write) -end - -function action_exec(command, package) - local sys = require "luci.sys" - local cmd = { "/bin/opkg", "--force-removal-of-dependent-packages" } - local pkg = luci.http.formvalue("package") - - if luci.http.formvalue("autoremove") == "true" then - cmd[#cmd + 1] = "--autoremove" - end - - if luci.http.formvalue("overwrite") == "true" then - cmd[#cmd + 1] = "--force-overwrite" - end - - cmd[#cmd + 1] = command - - if pkg then - cmd[#cmd + 1] = pkg - end - - luci.http.prepare_content("application/json") - luci.http.write_json(sys.process.exec(cmd, true, true)) -end - -function action_statvfs() - local fs = require "nixio.fs" - - luci.http.prepare_content("application/json") - luci.http.write_json(fs.statvfs("/") or {}) -end - -function action_config() - local fs = require "nixio.fs" - local js = require "luci.jsonc" - local data = luci.http.formvalue("data") - - if data then - data = js.parse(data) - - if not data then - luci.http.status(400, "Bad Request") - return - end - - local file, content - for file, content in pairs(data) do - if type(content) ~= "string" or - (file ~= "opkg.conf" and not file:match("^opkg/[^/]+%.conf$")) - then - luci.http.status(400, "Bad Request") - return - end - - local path = "/etc/%s" % file - if not fs.access(path, "w") then - luci.http.status(403, "Permission denied") - return - end - - fs.writefile(path, content:gsub("\r\n", "\n")) - end - - luci.http.status(204, "Saved") - else - local rv = { ["opkg.conf"] = fs.readfile("/etc/opkg.conf") } - local entries = fs.dir("/etc/opkg") - if entries then - local entry - for entry in entries do - if entry:match("%.conf$") then - rv["opkg/%s" % entry] = fs.readfile("/etc/opkg/%s" % entry) - end - end - end - - luci.http.prepare_content("application/json") - luci.http.write_json(rv) - end -end diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-app-firewall.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-app-firewall.json deleted file mode 100644 index 4672a27..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-app-firewall.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "admin/network/firewall": { - "title": "Firewall", - "order": 60, - "action": { - "type": "alias", - "path": "admin/network/firewall/zones" - }, - "depends": { - "acl": [ "luci-app-firewall" ], - "fs": { "/sbin/fw3": "executable" }, - "uci": { "firewall": true } - } - }, - - "admin/network/firewall/zones": { - "title": "General Settings", - "order": 10, - "action": { - "type": "view", - "path": "firewall/zones" - } - }, - - "admin/network/firewall/forwards": { - "title": "Port Forwards", - "order": 20, - "action": { - "type": "view", - "path": "firewall/forwards" - } - }, - - "admin/network/firewall/rules": { - "title": "Traffic Rules", - "order": 30, - "action": { - "type": "view", - "path": "firewall/rules" - } - }, - - "admin/network/firewall/snats": { - "title": "NAT Rules", - "order": 40, - "action": { - "type": "view", - "path": "firewall/snats" - } - }, - - - "admin/network/firewall/custom": { - "title": "Custom Rules", - "order": 50, - "action": { - "type": "view", - "path": "firewall/custom" - } - }, - - "admin/network/firewall/customttl": { - "title": "Custom TTL Settings", - "order": 55, - "action": { - "type": "cbi", - "path": "firewall/ttlx" - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-network.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-network.json deleted file mode 100644 index 188c695..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-network.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "admin/network/switch": { - "title": "Switch", - "order": 20, - "action": { - "type": "view", - "path": "network/switch" - }, - "depends": { - "acl": [ "luci-mod-network-config" ], - "fs": { "/sbin/swconfig": "executable" }, - "uci": { "network": { "@switch": true } } - } - }, - - "admin/network/wireless": { - "title": "Wireless", - "order": 15, - "action": { - "type": "view", - "path": "network/wireless" - }, - "depends": { - "acl": [ "luci-mod-network-config" ], - "uci": { "wireless": { "@wifi-device": true } } - } - }, - - "admin/network/remote_addr/*": { - "action": { - "type": "call", - "module": "luci.controller.admin.network", - "function": "remote_addr" - } - }, - - "admin/network/network": { - "title": "Interfaces", - "order": 10, - "action": { - "type": "view", - "path": "network/interfaces" - }, - "depends": { - "acl": [ "luci-mod-network-config" ] - } - }, - - "admin/network/dhcp": { - "title": "DHCP and DNS", - "order": 30, - "action": { - "type": "view", - "path": "network/dhcp" - }, - "depends": { - "acl": [ "luci-mod-network-dhcp" ], - "uci": { "dhcp": true } - } - }, - - "admin/network/hosts": { - "title": "Hostnames", - "order": 40, - "action": { - "type": "view", - "path": "network/hosts" - }, - "depends": { - "acl": [ "luci-mod-network-dhcp" ], - "uci": { "dhcp": true } - } - }, - - "admin/network/routes": { - "title": "Static Routes", - "order": 50, - "action": { - "type": "view", - "path": "network/routes" - }, - "depends": { - "acl": [ "luci-mod-network-config" ] - } - }, - - "admin/network/diagnostics": { - "title": "Diagnostics", - "order": 60, - "action": { - "type": "view", - "path": "network/diagnostics" - }, - "depends": { - "acl": [ "luci-mod-network-diagnostics" ] - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-status.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-status.json deleted file mode 100644 index 5beffdd..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-status.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "admin/status/overview": { - "title": "Overview", - "order": 1, - "action": { - "type": "template", - "path": "admin_status/index" - }, - "depends": { - "acl": [ "luci-mod-status-index" ] - } - }, - - "admin/status/syslog": { - "title": "System Log", - "order": 4, - "action": { - "type": "view", - "path": "status/syslog" - }, - "depends": { - "acl": [ "luci-mod-status-logs" ] - } - }, - - "admin/status/channel_analysis": { - "title": "Wifi Channel Analysis", - "order": 7, - "action": { - "type": "view", - "path": "status/channel_analysis" - }, - "depends": { - "acl": [ "luci-mod-status-channel_analysis" ], - "uci": { "wireless": { "@wifi-device": true } } - } - }, -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-system.json b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-system.json deleted file mode 100644 index 7ab8bed..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/limited21/luci-mod-system.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "admin/system/system": { - "title": "System", - "order": 1, - "action": { - "type": "view", - "path": "system/system" - }, - "depends": { - "acl": [ "luci-mod-system-config" ] - } - }, - - "admin/system/admin": { - "title": "Administration", - "order": 2, - "action": { - "type": "firstchild" - }, - "depends": { - "acl": [ "luci-mod-system-config", "luci-mod-system-ssh" ] - } - }, - - "admin/system/admin/password": { - "title": "Router Password", - "order": 1, - "action": { - "type": "view", - "path": "system/password" - }, - "depends": { - "acl": [ "luci-mod-system-config" ] - } - }, - - "admin/system/flash": { - "title": "Flash Firmware", - "order": 70, - "action": { - "type": "view", - "path": "system/flash" - }, - "depends": { - "acl": [ "luci-mod-system-flash" ] - } - }, - - "admin/system/reboot": { - "title": "Reboot", - "order": 90, - "action": { - "type": "view", - "path": "system/reboot" - }, - "depends": { - "acl": [ "luci-mod-system-reboot" ] - } - } -} diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/setmenu.sh b/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/setmenu.sh deleted file mode 100644 index fd5bc31..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/fullmenu/setmenu.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -log() { - logger -t "Menu Change" "$@" -} - -full=$1 -source /etc/openwrt_release -twone=$(echo "$DISTRIB_RELEASE" | grep "21.02") - -if [ $full = "0" ]; then - fv="1" - if [ ! -z "$twone" ]; then # 21.02 - cp /usr/lib/fullmenu/full21/luci-mod-status.json /usr/share/luci/menu.d - cp /usr/lib/fullmenu/full21/luci-mod-system.json /usr/share/luci/menu.d - cp /usr/lib/fullmenu/full21/luci-app-opkg.json /usr/share/luci/menu.d - else # 19.07.6 - cp /usr/lib/fullmenu/full19/luci-mod-status.json /usr/share/luci/menu.d - cp /usr/lib/fullmenu/full19/luci-mod-system.json /usr/share/luci/menu.d - fi -else - fv="0" - if [ ! -z "$twone" ]; then # 21.02 - cp /usr/lib/fullmenu/limited21/luci-mod-status.json /usr/share/luci/menu.d - cp /usr/lib/fullmenu/limited21/luci-mod-system.json /usr/share/luci/menu.d - rm -f /usr/share/luci/menu.d/luci-app-opkg.json - else # 19.07.6 - cp /usr/lib/fullmenu/limited19/luci-mod-status.json /usr/share/luci/menu.d - cp /usr/lib/fullmenu/limited19/luci-mod-system.json /usr/share/luci/menu.d - fi -fi -uci set custom.menu.full=$fv -uci commit custom \ No newline at end of file diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/lua/luci/controller/fullmenu.lua b/rooter/0optionalapps/ext-menu/files/usr/lib/lua/luci/controller/fullmenu.lua deleted file mode 100644 index 20d1494..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/lua/luci/controller/fullmenu.lua +++ /dev/null @@ -1,28 +0,0 @@ -module("luci.controller.fullmenu", package.seeall) -function index() - local fs = require "nixio.fs" - local page - page = entry({"admin", "system", "fullmenu"}, template("fullmenu/fullmenu"), "Menu Selection", 96) - page.dependent = true - - entry({"admin", "system", "getmenu"}, call("action_getmenu")) - entry({"admin", "system", "setmenu"}, call("action_setmenu")) - -end - -function action_getmenu() - local rv = {} - id = luci.model.uci.cursor():get("custom", "menu", "full") - rv["full"] = id - password = luci.model.uci.cursor():get("custom", "menu", "password") - rv["password"] = password - - luci.http.prepare_content("application/json") - luci.http.write_json(rv) -end - -function action_setmenu() - local set = luci.http.formvalue("set") - os.execute("/usr/lib/fullmenu/setmenu.sh " .. set) - -end \ No newline at end of file diff --git a/rooter/0optionalapps/ext-menu/files/usr/lib/lua/luci/view/fullmenu/fullmenu.htm b/rooter/0optionalapps/ext-menu/files/usr/lib/lua/luci/view/fullmenu/fullmenu.htm deleted file mode 100644 index a08e06d..0000000 --- a/rooter/0optionalapps/ext-menu/files/usr/lib/lua/luci/view/fullmenu/fullmenu.htm +++ /dev/null @@ -1,166 +0,0 @@ -<%+header%> -<% -local sys = require "luci.sys" -local utl = require "luci.util" -local fs = require "nixio.fs" - -function showicon(lck) - if lck == 0 then - return resource .. "/icons/unlock1.png" - else - return resource .. "/icons/lock1.png" - end -end - --%> - - - -
      -
      -

      <%:Menu Selection%>

      -
      - - - - -
      - - - - - - - - - - - - - - - - - - - - - - -
      <%:Current Menu is Limited.%>
      <%:You must enter a password to change to the full Menu.%>
      - - - - - - - - - - - - - - -
      <%:Current Menu is Full.%>
      <%:You must enter a password to change to the limited Menu.%>
      - -
      - -
      -
      -<%+footer%> \ No newline at end of file diff --git a/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/controller/speedtest.lua b/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/controller/speedtest.lua index 2c78f99..0a70363 100644 --- a/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/controller/speedtest.lua +++ b/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/controller/speedtest.lua @@ -1,11 +1,7 @@ module("luci.controller.speedtest", package.seeall) - -I18N = require "luci.i18n" -translate = I18N.translate - function index() local page - entry({"admin", "speed"}, firstchild(), translate("Speed Test"), 95).dependent=false - page = entry({"admin", "speed", "speedtest"}, template("speedtest/speedtest"), translate("OpenSpeedTest"), 71) + entry({"admin", "speed"}, firstchild(), "Speed Test", 81).dependent=false + page = entry({"admin", "speed", "speedtest"}, template("speedtest/speedtest"), "OpenSpeedTest", 71) page.dependent = true end diff --git a/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/view/speedtest/speedtest.htm b/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/view/speedtest/speedtest.htm index 8f731de..53317d1 100644 --- a/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/view/speedtest/speedtest.htm +++ b/rooter/0optionalapps/ext-speedtest/files/usr/lib/lua/luci/view/speedtest/speedtest.htm @@ -17,8 +17,8 @@
      -

      <%:Browser Speed Test%>

      -
      <%:A Speed Test using OpenSpeedTest that runs in the browser%>
      +

      Browser Speed Test

      +
      A Speed Test using OpenSpeedTest that runs in the browser
      diff --git a/rooter/0optionalapps/ext-texting/files/usr/lib/lua/luci/controller/texting.lua b/rooter/0optionalapps/ext-texting/files/usr/lib/lua/luci/controller/texting.lua index a729365..c0c5585 100644 --- a/rooter/0optionalapps/ext-texting/files/usr/lib/lua/luci/controller/texting.lua +++ b/rooter/0optionalapps/ext-texting/files/usr/lib/lua/luci/controller/texting.lua @@ -1,16 +1,8 @@ module("luci.controller.texting", package.seeall) function index() local lock = luci.model.uci.cursor():get("custom", "menu", "full") - local multilock = luci.model.uci.cursor():get("custom", "multiuser", "multi") or "0" - local rootlock = luci.model.uci.cursor():get("custom", "multiuser", "root") or "0" - if (multilock == "0") or (multilock == "1" and rootlock == "1") then - if lock == "1" then - if (multilock == "1" and rootlock == "1") then - entry({"admin", "adminmenu", "texting"}, cbi("fullmenu/texting"), "Random Texting", 9) - else - entry({"admin", "adminmenu", "texting"}, cbi("fullmenu/texting"), "---Random Texting", 9) - end - end + if lock == "1" then + entry({"admin", "adminmenu", "texting"}, cbi("fullmenu/texting"), "---Random Texting", 8) end entry({"admin", "services", "chksms"}, call("action_chksms")) diff --git a/rooter/0optionalapps/ext-throttle/Makefile b/rooter/0optionalapps/ext-throttle/Makefile deleted file mode 100644 index cf731cc..0000000 --- a/rooter/0optionalapps/ext-throttle/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -#Owned by DairyMan@Whirlpool -# -#Copyright GNU act. -include $(TOPDIR)/rules.mk - -PKG_NAME:=ext-throttle -PKG_VERSION:=1.000 -PKG_RELEASE:=1 - -PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool -include $(INCLUDE_DIR)/package.mk - -define Package/ext-throttle - SECTION:=utils - CATEGORY:=ROOter - SUBMENU:=Optional Applications - DEPENDS:=+tc +kmod-sched-core +kmod-ifb +iptables \ - +iptables-mod-ipopt +iptables-mod-conntrack-extra \ - +kmod-sched-cake - TITLE:=support for Throttle - PKGARCH:=all -endef - -define Package/ext-throttle/description - Helper scripts to enable Throttle -endef - - -define Build/Compile -endef - -define Package/ext-throttle/install - $(CP) ./files/* $(1)/ -endef - -$(eval $(call BuildPackage,ext-throttle)) diff --git a/rooter/0optionalapps/ext-throttle/files/etc/config/sqm b/rooter/0optionalapps/ext-throttle/files/etc/config/sqm deleted file mode 100644 index 67f58de..0000000 --- a/rooter/0optionalapps/ext-throttle/files/etc/config/sqm +++ /dev/null @@ -1,34 +0,0 @@ - -config queue 'wan' - option enabled '0' - option download '85000' - option upload '10000' - option qdisc 'cake' - option script 'piece_of_cake.qos' - option linklayer 'none' - option interface '0' - option debug_logging '0' - option verbosity '5' - -config queue 'wan1' - option enabled '0' - option download '85000' - option upload '10000' - option qdisc 'cake' - option script 'piece_of_cake.qos' - option linklayer 'none' - option debug_logging '0' - option verbosity '5' - option interface '0' - -config queue 'wan2' - option enabled '0' - option download '85000' - option upload '10000' - option qdisc 'cake' - option script 'piece_of_cake.qos' - option linklayer 'none' - option interface '0' - option debug_logging '0' - option verbosity '5' - diff --git a/rooter/0optionalapps/ext-throttle/files/etc/hotplug.d/iface/11-sqm b/rooter/0optionalapps/ext-throttle/files/etc/hotplug.d/iface/11-sqm deleted file mode 100644 index 75ff4ea..0000000 --- a/rooter/0optionalapps/ext-throttle/files/etc/hotplug.d/iface/11-sqm +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -if [ "$ACTION" = ifdown ]; then - if [ $INTERFACE = "wan" -o $INTERFACE = "wan1" -o $INTERFACE = "wan2" ]; then - uci set sqm.$INTERFACE.interface='0' - uci commit sqm - logger -t THROTTLE-DEBUG "$ACTION $INTERFACE" - fi -fi - -[ -n "$DEVICE" ] || exit 0 - -restart_sqm() { - /usr/lib/sqm/run.sh stop ${DEVICE} - /usr/lib/sqm/run.sh start ${DEVICE} -} - -if [ "$ACTION" = ifup ]; then - if [ $INTERFACE = "wan" -o $INTERFACE = "wan1" -o $INTERFACE = "wan2" ]; then - uci set sqm.$INTERFACE.interface=$DEVICE - uci commit sqm - /etc/init.d/sqm enabled - restart_sqm - logger -t THROTTLE-DEBUG "$DEVICE $ACTION $INTERFACE" - fi -fi - diff --git a/rooter/0optionalapps/ext-throttle/files/etc/init.d/sqm b/rooter/0optionalapps/ext-throttle/files/etc/init.d/sqm deleted file mode 100644 index 3badb62..0000000 --- a/rooter/0optionalapps/ext-throttle/files/etc/init.d/sqm +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=50 -USE_PROCD=1 - -service_triggers() -{ - procd_add_reload_trigger "sqm" -} - -reload_service() -{ - stop "$@" - start "$@" -} - -start_service() -{ - /usr/lib/sqm/run.sh start "$@" -} - -stop_service() -{ - /usr/lib/sqm/run.sh stop "$@" -} - -boot() -{ - export SQM_VERBOSITY_MIN=5 # Silence errors - start "$@" -} diff --git a/rooter/0optionalapps/ext-throttle/files/etc/sqm/sqm.conf b/rooter/0optionalapps/ext-throttle/files/etc/sqm/sqm.conf deleted file mode 100644 index b9a98b4..0000000 --- a/rooter/0optionalapps/ext-throttle/files/etc/sqm/sqm.conf +++ /dev/null @@ -1,5 +0,0 @@ -SQM_LIB_DIR=/usr/lib/sqm -SQM_STATE_DIR=/var/run/sqm -SQM_QDISC_STATE_DIR=${SQM_STATE_DIR}/available_qdiscs -SQM_CHECK_QDISCS="fq_codel codel pie sfq cake" -SQM_SYSLOG=1 diff --git a/rooter/0optionalapps/ext-throttle/files/etc/uci-defaults/50-luci-sqm b/rooter/0optionalapps/ext-throttle/files/etc/uci-defaults/50-luci-sqm deleted file mode 100644 index b3aa47c..0000000 --- a/rooter/0optionalapps/ext-throttle/files/etc/uci-defaults/50-luci-sqm +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@sqm[-1] - add ucitrack sqm - set ucitrack.@sqm[-1].init=sqm - del_list ucitrack.@firewall[0].affects=sqm - add_list ucitrack.@firewall[0].affects=sqm - commit ucitrack -EOF - -exit 0 diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/defaults.sh b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/defaults.sh deleted file mode 100644 index 009cfc6..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/defaults.sh +++ /dev/null @@ -1,109 +0,0 @@ -# You need to jiggle these parameters. Note limits are tuned towards a <10Mbit uplink <60Mbup down - -[ -z "$SCRIPT" ] && SCRIPT= -[ -z "$UPLINK" ] && UPLINK=2302 -[ -z "$DOWNLINK" ] && DOWNLINK=14698 -[ -z "$IFACE" ] && IFACE=eth0 -[ -z "$QDISC" ] && QDISC=fq_codel -[ -z "$LLAM" ] && LLAM="default" -[ -z "$LINKLAYER" ] && LINKLAYER="none" -[ -z "$OVERHEAD" ] && OVERHEAD=0 -[ -z "$STAB_MTU" ] && STAB_MTU=2047 -[ -z "$STAB_MPU" ] && STAB_MPU=0 -[ -z "$STAB_TSIZE" ] && STAB_TSIZE=512 -[ -z "$AUTOFLOW" ] && AUTOFLOW=0 -[ -z "$LIMIT" ] && LIMIT=1001 # sane global default for *LIMIT for fq_codel on a small memory device -[ -z "$ILIMIT" ] && ILIMIT= -[ -z "$ELIMIT" ] && ELIMIT= -[ -z "$ITARGET" ] && ITARGET= -[ -z "$ETARGET" ] && ETARGET= -[ -z "$IECN" ] && IECN="ECN" -[ -z "$EECN" ] && EECN="ECN" -# These two used to be called something else; preserve backwards compatibility -[ -z "$ZERO_DSCP_INGRESS" ] && ZERO_DSCP_INGRESS="${ZERO_DSCP:-${SQUASH_DSCP:-1}}" -[ -z "$IGNORE_DSCP_INGRESS" ] && IGNORE_DSCP_INGRESS="${IGNORE_DSCP:-${SQUASH_INGRESS:-1}}" - -[ -z "$IQDISC_OPTS" ] && IQDISC_OPTS="" -[ -z "$EQDISC_OPTS" ] && EQDISC_OPTS="" - -# handling of specific important binaries -[ -z "$TC" ] && TC=tc_wrapper -[ -z "$TC_BINARY" ] && TC_BINARY=$(command -v tc) -[ -z "$IP" ] && IP=ip_wrapper -[ -z "$IP_BINARY" ] && IP_BINARY=$(command -v ip) -[ -z "$IPTABLES" ] && IPTABLES=iptables_wrapper -[ -z "$IPTABLES_BINARY" ] && IPTABLES_BINARY=$(command -v iptables) -[ -z "$IP6TABLES" ] && IP6TABLES=ip6tables_wrapper -[ -z "$IP6TABLES_BINARY" ] && IP6TABLES_BINARY=$(command -v ip6tables) -[ -z "$IPTABLES_ARGS" ] && IPTABLES_ARGS="-w 1" - - -# Try modprobe first, fall back to insmod -if [ -z "$INSMOD" ]; then - INSMOD=$(command -v modprobe) - if [ -n "$INSMOD" ]; then - INSMOD="${INSMOD} -q" - else - INSMOD=$(command -v insmod) - fi -fi - -[ -z "$TARGET" ] && TARGET="5ms" -[ -z "$IPT_MASK" ] && IPT_MASK="0xff" # to disable: set mask to 0xffffffff -#sm: we need the functions above before trying to set the ingress IFB device -#sm: *_CAKE_OPTS should contain the diffserv keyword for cake -[ -z "$INGRESS_CAKE_OPTS" ] && INGRESS_CAKE_OPTS="diffserv3" -[ -z "$EGRESS_CAKE_OPTS" ] && EGRESS_CAKE_OPTS="diffserv3" - -[ -z "$CUR_DIRECTION" ] && CUR_DIRECTION="NONE" - - -# HTB without a sufficiently large burst/cburst value is a bit CPU hungry -# so allow to specify the permitted burst in the time domain (microseconds) -# so the user has a feeling for the associated worst case latency cost -# set to zero to use htb default butst of one MTU -[ -z "$SHAPER_BURST_DUR_US" ] && SHAPER_BURST_DUR_US=1000 -[ -z "$ISHAPER_BURST_DUR_US" ] && ISHAPER_BURST_DUR_US=$SHAPER_BURST_DUR_US -[ -z "$ESHAPER_BURST_DUR_US" ] && ESHAPER_BURST_DUR_US=$SHAPER_BURST_DUR_US - -# use the same logic for the calculation of htb's quantum -# quantum controlls how many bytes htb tries to deque from the current tier -# before switching tiers. -[ -z "$SHAPER_QUANTUM_DUR_US" ] && SHAPER_QUANTUM_DUR_US=$SHAPER_BURST_DUR_US -[ -z "$ISHAPER_QUANTUM_DUR_US" ] && ISHAPER_QUANTUM_DUR_US=$SHAPER_QUANTUM_DUR_US -[ -z "$ESHAPER_QUANTUM_DUR_US" ] && ESHAPER_QUANTUM_DUR_US=$SHAPER_QUANTUM_DUR_US - - -# Logging verbosity -VERBOSITY_SILENT=0 -VERBOSITY_ERROR=1 -VERBOSITY_WARNING=2 -VERBOSITY_INFO=5 -VERBOSITY_DEBUG=8 -VERBOSITY_TRACE=10 -[ -z "$SQM_VERBOSITY_MAX" ] && SQM_VERBOSITY_MAX=$VERBOSITY_INFO -# For silencing only errors -[ -z "$SQM_VERBOSITY_MIN" ] && SQM_VERBOSITY_MIN=$VERBOSITY_SILENT - -[ -z "$SQM_DEBUG" ] && SQM_DEBUG=0 -if [ "$SQM_DEBUG" -eq "1" ] -then - SQM_DEBUG_STEM="${SQM_STATE_DIR}/${IFACE}" - SQM_START_LOG="${SQM_DEBUG_STEM}.start-sqm.log" - SQM_STOP_LOG="${SQM_DEBUG_STEM}.stop-sqm.log" - [ -z "SQM_DEBUG_LOG" ] && SQM_DEBUG_LOG="${SQM_DEBUG_STEM}.debug.log" - OUTPUT_TARGET="${SQM_DEBUG_LOG}" -else - OUTPUT_TARGET="/dev/null" -fi - - -# Can be overridden by callers that want to silence error output for a -# particular command -SILENT=0 - -# Transaction log for unwinding ipt rules -IPT_TRANS_LOG="${SQM_STATE_DIR}/${IFACE}.iptables.log" - -# These are the modules that do_modules() will attempt to load -ALL_MODULES="act_ipt sch_$QDISC sch_ingress act_mirred cls_fw cls_flow cls_u32 sch_htb sch_hfsc" diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/functions.sh b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/functions.sh deleted file mode 100644 index c61edfa..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/functions.sh +++ /dev/null @@ -1,923 +0,0 @@ -################################################################################ -# (sqm) functions.sh -# -# These are all helper functions for various parts of SQM scripts. If you want -# to play around with your own shaper-qdisc-filter configuration look here for -# ready made tools, or examples start of on your own. -# -# Please note the SQM logger function is broken down into levels of logging. -# Use only levels appropriate to touch points in your script and realize the -# potential to overflow SYSLOG. -# -################################################################################ -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-2019 -# Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller -# Eric Luehrsen -# -################################################################################ - -# Logging verbosity -VERBOSITY_SILENT=0 -VERBOSITY_ERROR=1 -VERBOSITY_WARNING=2 -VERBOSITY_INFO=5 -VERBOSITY_DEBUG=8 -VERBOSITY_TRACE=10 - -sqm_logger() { - local level_min - local level_max - local debug - - case $1 in - ''|*[!0-9]*) LEVEL=$VERBOSITY_INFO ;; # empty or non-numbers - *) LEVEL=$1; shift ;; - esac - - level_min=${SQM_VERBOSITY_MIN:-$VERBOSITY_SILENT} - level_max=${SQM_VERBOSITY_MAX:-$VERBOSITY_INFO} - debug=${SQM_DEBUG:-0} - - if [ "$level_max" -ge "$LEVEL" ] && [ "$level_min" -le "$LEVEL" ] ; then - if [ "$SQM_SYSLOG" -eq "1" ]; then - logger -t SQM -s "$*" - else - echo "$@" >&2 - fi - fi - - # this writes into SQM_START_LOG or SQM_STOP_LOG, log files are trucated in - # start-sqm/stop-sqm respectively and should only take little space - if [ "$debug" -eq "1" ]; then - echo "$@" >> "${SQM_DEBUG_LOG}" - fi -} - -sqm_error() { sqm_logger $VERBOSITY_ERROR ERROR: "$@"; } -sqm_warn() { sqm_logger $VERBOSITY_WARNING WARNING: "$@"; } -sqm_log() { sqm_logger $VERBOSITY_INFO "$@"; } -sqm_debug() { sqm_logger $VERBOSITY_DEBUG "$@"; } -sqm_trace() { sqm_logger $VERBOSITY_TRACE "$@"; } - - -# Inspired from https://stackoverflow.com/questions/85880/determine-if-a-function-exists-in-bash -#fn_exists() { LC_ALL=C type $1 | grep -q 'is a function'; } -fn_exists() { - local FN_CANDIDATE - local CUR_LC_ALL - local TYPE_OUTPUT - local RET - FN_CANDIDATE=$1 - # check that a candidate nme was given - if [ -z "${FN_CANDIDATE}" ]; then - sqm_error "fn_exists: no function name specified as first argument." - return 1 - fi - sqm_debug "fn_exists: function candidate name: ${FN_CANDIDATE}" - - # extract the textual type description - TYPE_OUTPUT=$( LC_ALL=C type $1 2>&1 ) - sqm_debug "fn_exists: TYPE_OUTPUT: $TYPE_OUTPUT" - - # OpenWrt (2019) returns 'is a function' - # Debian Buster/raspbian returns 'is a shell function' - # let's just hope no Linux system reurn 'is a shell builtin function' - echo ${TYPE_OUTPUT} | grep -q 'is .*function' - RET=$? - - sqm_debug "fn_exists: return value: ${RET}" - return ${RET} -} - - -# Transaction logging for ipt rules to allow for gracefull final teardown -ipt_log_restart() { - [ -f "$IPT_TRANS_LOG" ] && rm -f "$IPT_TRANS_LOG" -} - - -# Function to negate iptables commands. Turns addition and insertion into -# deletion, and creation of new chains into deletion -# Its output has quotes around all parameters so we can preserve arguments -# containing whitespace across log file write & re-read -ipt_negate() -{ - for var in "$@"; do - case "$var" in - "-A"|"-I") echo -n '"-D" ' ;; - "-N") echo -n '"-X" ' ;; - *) echo -n "\"$var\" " ;; - esac - done - echo "" -} - -ipt_log() -{ - echo "$@" >> $IPT_TRANS_LOG -} - -# Split a string containing an iptables command line parameter invocation, then -# run it through ipt(). This is used to turn lines read from the log file, or -# output from ipt_negate() back into proper parameters contained in $@ -ipt_run_split() -{ - eval "set -- $1" - ipt "$@" -} - -# Read the transaction log in reverse and execute using ipt to undo changes. -# Since we logged only ipt '-D' commands, ipt won't add them again to the -# transaction log, but will include them in the syslog/debug log. -ipt_log_rewind() { - [ -f "$IPT_TRANS_LOG" ] || return 0 - sed -n '1!G;h;$p' "$IPT_TRANS_LOG" | - while read line; do - [ -n "$line" ] || continue - ipt_run_split "$line" - done -} - -ipt() { - local neg - - for var in "$@"; do - case "$var" in - "-A"|"-I"|"-N") - # If the rule is an addition rule, we first run its negation, - # then log that negation to be used by ipt_log_rewind() on - # shutdown - neg="$(ipt_negate "$@")" - ipt_run_split "$neg" - ipt_log "$neg" - ;; - esac - done - - SILENT=1 ${IPTABLES} $IPTABLES_ARGS "$@" - SILENT=1 ${IP6TABLES} $IPTABLES_ARGS "$@" -} - - -# wrapper to call iptables to allow debug logging -iptables_wrapper(){ - cmd_wrapper iptables ${IPTABLES_BINARY} "$@" -} - -# wrapper to call ip6tables to allow debug logging -ip6tables_wrapper(){ - cmd_wrapper ip6tables ${IP6TABLES_BINARY} "$@" -} - -# wrapper to call tc to allow debug logging -tc_wrapper(){ - cmd_wrapper tc ${TC_BINARY} "$@" -} - -# wrapper to call ip to allow debug logging -ip_wrapper(){ - cmd_wrapper ip ${IP_BINARY} "$@" -} - -# the actual command execution wrapper -cmd_wrapper(){ - # $1: the symbolic name of the command for informative output - # $2: the name of the binary to call (potentially including the full path) - # $3-$end: the actual arguments for $2 - local CALLERID - local CMD_BINARY - local LAST_ERROR - local RET - local ERRLOG - - CALLERID=$1 ; shift 1 # extract and remove the id string - CMD_BINARY=$1 ; shift 1 # extract and remove the binary - - # Handle silencing of errors from callers - ERRLOG="sqm_error" - if [ "$SILENT" -eq "1" ]; then - ERRLOG="sqm_debug" - sqm_debug "cmd_wrapper: ${CALLERID}: invocation silenced by request, FAILURE either expected or acceptable." - # The busybox shell doesn't understand the concept of an inline variable - # only applying to a single command, so we need to reset SILENT - # afterwards. Ugly, but it works... - SILENT=0 - fi - - sqm_trace "cmd_wrapper: COMMAND: ${CMD_BINARY} $@" - LAST_ERROR=$( ${CMD_BINARY} "$@" 2>&1 ) - RET=$? - - if [ "$RET" -eq "0" ] ; then - sqm_debug "cmd_wrapper: ${CALLERID}: SUCCESS: ${CMD_BINARY} $@" - else - # this went south, try to capture & report more detail - $ERRLOG "cmd_wrapper: ${CALLERID}: FAILURE (${RET}): ${CMD_BINARY} $@" - $ERRLOG "cmd_wrapper: ${CALLERID}: LAST ERROR: ${LAST_ERROR}" - fi - - return $RET -} - - -do_modules() { - for m in $ALL_MODULES; do - [ -d /sys/module/${m} ] || ${INSMOD} $m 2>>${OUTPUT_TARGET} - done -} - -# Write a state file to the filename given as $1. This version will extract all -# variable names defined in defaults.sh and since defaults.sh should contain all -# used variables this should be the complete set. -write_state_file() { - local filename - local awkscript - awkscript='match($0, /[A-Z0-9_]+=/) {print substr($0, RSTART, RLENGTH-1)}' - filename=$1 - shift - awk "$awkscript" ${SQM_LIB_DIR}/defaults.sh | sort -u | while read var; do - val=$(eval echo '$'$var) - echo "$var=\"$val\"" - done > $filename -} - -check_state_dir() { - local PERM - local OWNER - - if [ -z "${SQM_STATE_DIR}" ]; then - SQM_DEBUG=0 sqm_error '$SQM_STATE_DIR is unset - check your config!' - exit 1 - fi - [ -d "${SQM_STATE_DIR}" ] || ( umask 077; mkdir -p "$SQM_STATE_DIR" ) || exit 1 - - if [ ! -w "${SQM_STATE_DIR}" ] || [ ! -x "${SQM_STATE_DIR}" ]; then - SQM_DEBUG=0 sqm_error "Cannot write to state dir '$SQM_STATE_DIR'" - exit 1 - fi - - # OpenWrt doesn't have stat; for now just skip the remaining tests if it's - # not available - command -v stat >/dev/null 2>&1 || return 0 - - PERM="0$(stat -L -c '%a' "${SQM_STATE_DIR}")" - if [ "$((PERM & 0002))" -ne 0 ]; then - SQM_DEBUG=0 sqm_error "State dir '$SQM_STATE_DIR' is world writable; this is unsafe, please fix" - exit 1 - fi - OWNER="$(stat -L -c '%u' "${SQM_STATE_DIR}")" - if [ "$OWNER" -ne "$(id -u)" ]; then - SQM_DEBUG=0 sqm_error "State dir '$SQM_STATE_DIR' is owned by a different user; this is unsafe, please fix" - exit 1 - fi -} - - -# find the ifb device associated with a specific interface, return nothing of no -# ifb is associated with IF -get_ifb_associated_with_if() { - local CUR_IF - local CUR_IFB - local TMP - CUR_IF=$1 - # Stray ' in the comment is a fix for broken editor syntax highlighting - CUR_IFB=$( $TC_BINARY -p filter show parent ffff: dev ${CUR_IF} | grep -o -E ifb'[^)\ ]+' ) # ' - sqm_debug "ifb associated with interface ${CUR_IF}: ${CUR_IFB}" - - # we could not detect an associated IFB for CUR_IF - if [ -z "${CUR_IFB}" ]; then - TMP=$( $TC_BINARY -p filter show parent ffff: dev ${CUR_IF} ) - if [ ! -z "${TMP}" ]; then - # oops, there is output but we failed to properly parse it? Ask for a user report - sqm_error "#---- CUT HERE ----#" - sqm_error "get_ifb_associated_with_if failed to extrect the ifb name from:" - sqm_error $( $TC_BINARY -p filter show parent ffff: dev ${CUR_IF} ) - sqm_error "Please report this as an issue at https://github.com/tohojo/sqm-scripts" - sqm_error "Please copy and paste everything below the cut-here line into your issue report, thanks." - else - sqm_debug "Currently no ifb is associated with ${CUR_IF}, this is normal during starting of the sqm system." - fi - fi - echo ${CUR_IFB} -} - -ifb_name() { - local CUR_IF - local MAX_IF_NAME_LENGTH - local IFB_PREFIX - local NEW_IFB - CUR_IF=$1 - MAX_IF_NAME_LENGTH=15 - IFB_PREFIX="ifb4" - NEW_IFB=$( echo -n "${IFB_PREFIX}${CUR_IF}" | head -c $MAX_IF_NAME_LENGTH ) - - echo ${NEW_IFB} -} - -# if required -create_new_ifb_for_if() { - local NEW_IFB - NEW_IFB=$(ifb_name $1) - create_ifb ${NEW_IFB} - RET=$? - echo $NEW_IFB - return $RET -} - - -# TODO: report failures -create_ifb() { - local CUR_IFB - CUR_IFB=${1} - $IP link add name ${CUR_IFB} type ifb -} - -delete_ifb() { - local CUR_IFB - CUR_IFB=${1} - $IP link set dev ${CUR_IFB} down - $IP link delete ${CUR_IFB} type ifb -} - - -# the best match is either the IFB already associated with the current interface -# or a new named IFB -get_ifb_for_if() { - local CUR_IF - local CUR_IFB - CUR_IF=$1 - # if an ifb is already associated return that - CUR_IFB=$( get_ifb_associated_with_if ${CUR_IF} ) - [ -z "$CUR_IFB" ] && CUR_IFB=$( create_new_ifb_for_if ${CUR_IF} ) - [ -z "$CUR_IFB" ] && sqm_warn "Could not find existing IFB for ${CUR_IF}, nor create a new IFB instead..." - echo ${CUR_IFB} -} - - -# Verify that a qdisc works, and optionally that it is part of a set of -# supported qdiscs. If passed a $2, this function will first check if $1 is in -# that (space-separated) list and return an error if it's not. -# -# note the ingress qdisc is different in that it requires tc qdisc replace dev -# tmp_ifb ingress instead of "root ingress" -verify_qdisc() { - local qdisc - local supported - local ifb - local root_string - local args - local IFB_MTU - local found - local randnum - qdisc=$1 - supported="$2" - randnum=$(tr -cd 0-9a-f < /dev/urandom 2>/dev/null | head -c 5) - ifb=SQM_IFB_$randnum - root_string="root" # this works for most qdiscs - args="" - IFB_MTU=1514 - - if [ -n "$supported" ]; then - found=0 - for q in $supported; do - [ "$qdisc" = "$q" ] && found=1 - done - [ "$found" -eq "1" ] || return 1 - fi - create_ifb $ifb || return 1 - - - case $qdisc in - #ingress is special - ingress) root_string="" ;; - #cannot instantiate tbf without args - tbf) - IFB_MTU=$( get_mtu $ifb ) - IFB_MTU=$(( ${IFB_MTU} + 14 )) # TBF's warning is confused, it says MTU but it checks MTU + 14 - args="limit 1 burst ${IFB_MTU} rate 1kbps" - ;; - esac - - $TC qdisc replace dev $ifb $root_string $qdisc $args - res=$? - if [ "$res" = "0" ] ; then - sqm_debug "QDISC $qdisc is useable." - else - sqm_error "QDISC $qdisc is NOT useable." - fi - delete_ifb $ifb - return $res -} - - -get_htb_adsll_string() { - ADSLL="" - if [ "$LLAM" = "htb_private" -a "$LINKLAYER" != "none" ]; then - # HTB defaults to MTU 1600 and an implicit fixed TSIZE of 256, but HTB - # as of around 3.10.0 does not actually use a table in the kernel - ADSLL="mpu ${STAB_MPU} linklayer ${LINKLAYER} overhead ${OVERHEAD} mtu ${STAB_MTU}" - sqm_debug "ADSLL: ${ADSLL}" - fi - echo ${ADSLL} -} - -get_stab_string() { - local STABSTRING - local TMP_LLAM - STABSTRING="" - TMP_LLAM=${LLAM} - if [ "${LLAM}" = "default" -a "$QDISC" != "cake" ]; then - sqm_debug "LLA: default link layer adjustment method for !cake is tc_stab" - TMP_LLAM="tc_stab" - fi - - if [ "${TMP_LLAM}" = "tc_stab" -a "$LINKLAYER" != "none" ]; then - STABSTRING="stab mtu ${STAB_MTU} tsize ${STAB_TSIZE} mpu ${STAB_MPU} overhead ${OVERHEAD} linklayer ${LINKLAYER}" - sqm_debug "STAB: ${STABSTRING}" - fi - echo ${STABSTRING} -} - -# cake knows how to handle ATM and per packet overhead, so expose and use this... -get_cake_lla_string() { - local STABSTRING - local TMP_LLAM - STABSTRING="" - TMP_LLAM=${LLAM} - if [ "${LLAM}" = "default" -a "$QDISC" = "cake" ]; then - sqm_debug "LLA: default link layer adjustment method for cake is cake" - TMP_LLAM="cake" - fi - - if [ "${TMP_LLAM}" = "cake" -a "${LINKLAYER}" != "none" ]; then - if [ "${LINKLAYER}" = "atm" ]; then - STABSTRING="atm" - fi - - STABSTRING="${STABSTRING} overhead ${OVERHEAD} mpu ${STAB_MPU}" - - sqm_debug "cake link layer adjustments: ${STABSTRING}" - fi - echo ${STABSTRING} -} - - -# centralize the implementation for the default sqm_start sqeuence -# the individual sqm_start function only need to do the individually -# necessary checking. -# This expects the calling script to supply both an egress() and ingress() function -# and will warn if they are missing -sqm_start_default() { - #sqm_error "sqm_start_default" - [ -n "$IFACE" ] || return 1 - - # reset the iptables trace log - ipt_log_restart - - if fn_exists sqm_prepare_script ; then - sqm_debug "sqm_start_default: starting sqm_prepare_script" - sqm_prepare_script - else - sqm_debug "sqm_start_default: no sqm_prepare_script function found, proceeding without." - fi - - do_modules - verify_qdisc $QDISC || return 1 - sqm_debug "sqm_start_default: Starting ${SCRIPT}" - - [ -z "$DEV" ] && DEV=$( get_ifb_for_if ${IFACE} ) - - if [ "${UPLINK}" -ne 0 ]; - then - CUR_DIRECTION="egress" - fn_exists egress && egress || sqm_warn "sqm_start_default: ${SCRIPT} lacks an egress() function" - #egress - sqm_debug "sqm_start_default: egress shaping activated" - else - sqm_debug "sqm_start_default: egress shaping deactivated" - SILENT=1 $TC qdisc del dev ${IFACE} root - fi - if [ "${DOWNLINK}" -ne 0 ]; - then - CUR_DIRECTION="ingress" - verify_qdisc ingress "ingress" || return 1 - fn_exists ingress && ingress || sqm_warn "sqm_start_default: ${SCRIPT} lacks an ingress() function" - #ingress - sqm_debug "sqm_start_default: ingress shaping activated" - else - sqm_debug "sqm_start_default: ingress shaping deactivated" - SILENT=1 $TC qdisc del dev ${DEV} root - SILENT=1 $TC qdisc del dev ${IFACE} ingress - fi - - return 0 -} - - -sqm_stop() { - if [ "${DOWNLINK}" -ne 0 ]; then - $TC qdisc del dev $IFACE ingress - $TC qdisc del dev $IFACE root - [ -n "$CUR_IFB" ] && $TC qdisc del dev $CUR_IFB root - [ -n "$CUR_IFB" ] && sqm_debug "${0}: ${CUR_IFB} shaper deleted" - fi - - # undo accumulated ipt commands during shutdown - ipt_log_rewind - # reset the iptables trace log - ipt_log_restart - - [ -n "$CUR_IFB" ] && $IP link set dev ${CUR_IFB} down - [ -n "$CUR_IFB" ] && $IP link delete ${CUR_IFB} type ifb - [ -n "$CUR_IFB" ] && sqm_debug "${0}: ${CUR_IFB} interface deleted" -} - -# Note this has side effects on the prio variable -# and depends on the interface global too -fc() { - $TC filter add dev $interface protocol ip parent $1 prio $prio u32 match ip tos $2 0xfc classid $3 - prio=$(($prio + 1)) - $TC filter add dev $interface protocol ipv6 parent $1 prio $prio u32 match ip6 priority $2 0xfc classid $3 - prio=$(($prio + 1)) -} - - -# allow better control over HTB's quantum variable -# this controlls how many bytes htb ties to deque from the current tier before -# switching to the next, if this is large mixing between pririty tiers will be -# lumpy, but at a lower CPU cost. In first approximation quantum should not be -# larger than burst. -get_htb_quantum() { - local HTB_MTU - local BANDWIDTH - local DURATION_US - local MIN_QUANTUM - local QUANTUM - HTB_MTU=$( get_mtu $1 ) - BANDWIDTH=$2 - DURATION_US=$3 - - sqm_debug "get_htb_quantum: 1: ${1}, 2: ${2}, 3: ${3}" - - if [ -z "${DURATION_US}" ] ; then - DURATION_US=${SHAPER_QUANTUM_DUR_US} # the duration of the burst in microseconds - sqm_warn "get_htb_quantum (by duration): Defaulting to ${DURATION_US} microseconds." - fi - - if [ -n "${HTB_MTU}" -a "${DURATION_US}" -gt "0" ] ; then - QUANTUM=$( get_burst ${HTB_MTU} ${BANDWIDTH} ${DURATION_US} ) - fi - - if [ -z "$QUANTUM" ]; then - MIN_QUANTUM=$(( ${MTU} + 48 )) # add 48 bytes to MTU for the ovehead - MIN_QUANTUM=$(( ${MIN_QUANTUM} + 47 )) # now do ceil(Min_BURST / 48) * 53 in shell integer arithmic - MIN_QUANTUM=$(( ${MIN_QUANTUM} / 48 )) - MIN_QUANTUM=$(( ${MIN_QUANTUM} * 53 )) # for MTU 1489 to 1536 this will result in MIN_BURST = 1749 Bytes - sqm_warn "get_htb_quantum: 0 bytes quantum will not work, defaulting to one ATM/AAL5 expanded MTU packet with overhead: ${MIN_QUANTUM}" - echo ${MIN_QUANTUM} - else - echo ${QUANTUM} - fi -} - - - - -# try to define the burst parameter in the duration required to transmit a burst -# at the configured bandwidth conceptuallly the matching quantum for this burst -# should be BURST/number_of_tiers to give each htb tier a chance to dequeue into -# each burst, but that most likely will end up with a somewhat too small quantum -# note: to get htb to report the configured burst/cburt one needs to issue the -# following command (for ifbpppoe-wan): -# tc -d class show dev ifb4pppoe-wan -get_burst() { - local MTU - local BANDWIDTH - local SHAPER_BURST_US - local MIN_BURST - local BURST - MTU=$1 - BANDWIDTH=$2 # note bandwidth is always given in kbps - SHAPER_BURST_US=$3 - - sqm_debug "get_burst: 1: ${1}, 2: ${2}, 3: ${3}" - - if [ -z "${SHAPER_BURST_US}" ] ; then - SHAPER_BURST_US=1000 # the duration of the burst in microseconds - sqm_warn "get_burst (by duration): Defaulting to ${SHAPER_BURST_US} microseconds bursts." - fi - - # let's assume ATM/AAL5 to be the worst case encapsulation - # and 48 Bytes a reasonable worst case per packet overhead - MIN_BURST=$(( ${MTU} + 48 )) # add 48 bytes to MTU for the ovehead - MIN_BURST=$(( ${MIN_BURST} + 47 )) # now do ceil(Min_BURST / 48) * 53 in shell integer arithmic - MIN_BURST=$(( ${MIN_BURST} / 48 )) - MIN_BURST=$(( ${MIN_BURST} * 53 )) # for MTU 1489 to 1536 this will result in MIN_BURST = 1749 Bytes - - # htb/tbf expect burst to be specified in bytes, while bandwidth is in kbps - BURST=$(( ((${SHAPER_BURST_US} * ${BANDWIDTH}) / 8000) )) - - if [ ${BURST} -lt ${MIN_BURST} ] ; then - sqm_log "get_burst (by duration): the calculated burst/quantum size of ${BURST} bytes was below the minimum of ${MIN_BURST} bytes." - BURST=${MIN_BURST} - fi - - sqm_debug "get_burst (by duration): BURST [Byte]: ${BURST}, BANDWIDTH [Kbps]: ${BANDWIDTH}, DURATION [us]: ${SHAPER_BURST_US}" - - echo ${BURST} -} - - -# Create optional burst parameters to leap over CPU interupts when the CPU is -# severly loaded. We need to be conservative though. -get_htb_burst() { - local HTB_MTU - local BANDWIDTH - local DURATION_US - local BURST - HTB_MTU=$( get_mtu $1 ) - BANDWIDTH=$2 - DURATION_US=$3 - - sqm_debug "get_htb_burst: 1: ${1}, 2: ${2}, 3: ${3}" - - if [ -z "${DURATION_US}" ] ; then - DURATION_US=${SHAPER_BURST_DUR_US} # the duration of the burst in microseconds - sqm_warn "get_htb_burst (by duration): Defaulting to ${SHAPER_BURST_DUR_US} microseconds." - fi - - if [ -n "${HTB_MTU}" -a "${DURATION_US}" -gt "0" ] ; then - BURST=$( get_burst ${HTB_MTU} ${BANDWIDTH} ${DURATION_US} ) - fi - - if [ -z "$BURST" ]; then - sqm_debug "get_htb_burst: Default Burst, HTB will use MTU plus shipping and handling" - else - echo burst $BURST cburst $BURST - fi -} - -# For a default PPPoE link this returns 1492 just as expected but I fear we -# actually need the wire size of the whole thing not so much the MTU -get_mtu() { - CUR_MTU=$(cat /sys/class/net/$1/mtu) - sqm_debug "IFACE: ${1} MTU: ${CUR_MTU}" - echo ${CUR_MTU} -} - -# Set the autoflow variable to 1 if you want to limit the number of flows -# otherwise the default of 1024 will be used for all Xfq_codel qdiscs. - -get_flows() { - case $QDISC in - codel|ns2_codel|pie|*fifo|pfifo_fast) ;; - fq_codel|*fq_codel|sfq) echo flows $( get_flows_count ${1} ) ;; - esac -} - -get_flows_count() { - if [ "${AUTOFLOW}" -eq "1" ]; then - FLOWS=8 - [ $1 -gt 999 ] && FLOWS=16 - [ $1 -gt 2999 ] && FLOWS=32 - [ $1 -gt 7999 ] && FLOWS=48 - [ $1 -gt 9999 ] && FLOWS=64 - [ $1 -gt 19999 ] && FLOWS=128 - [ $1 -gt 39999 ] && FLOWS=256 - [ $1 -gt 69999 ] && FLOWS=512 - [ $1 -gt 99999 ] && FLOWS=1024 - case $QDISC in - codel|ns2_codel|pie|*fifo|pfifo_fast) ;; - fq_codel|*fq_codel|sfq) echo $FLOWS ;; - esac - else - case $QDISC in - codel|ns2_codel|pie|*fifo|pfifo_fast) ;; - fq_codel|*fq_codel|sfq) echo 1024 ;; - esac - fi -} - -# set the target parameter, also try to only take well formed inputs -# Note, the link bandwidth in the current direction (ingress or egress) -# is required to adjust the target for slow links -get_target() { - local CUR_TARGET - local CUR_LINK_KBPS - CUR_TARGET=${1} - CUR_LINK_KBPS=${2} - [ ! -z "$CUR_TARGET" ] && sqm_debug "cur_target: ${CUR_TARGET} cur_bandwidth: ${CUR_LINK_KBPS}" - CUR_TARGET_STRING= - # either e.g. 100ms or auto - CUR_TARGET_VALUE=$( echo ${CUR_TARGET} | grep -o -e \^'[[:digit:]]\+' ) - CUR_TARGET_UNIT=$( echo ${CUR_TARGET} | grep -o -e '[[:alpha:]]\+'\$ ) - - AUTO_TARGET= - UNIT_VALID= - - case $QDISC in - *codel|*pie) - if [ ! -z "${CUR_TARGET_VALUE}" -a ! -z "${CUR_TARGET_UNIT}" ]; - then - case ${CUR_TARGET_UNIT} in - # permissible units taken from: tc_util.c get_time() - s|sec|secs|ms|msec|msecs|us|usec|usecs) - CUR_TARGET_STRING="target ${CUR_TARGET_VALUE}${CUR_TARGET_UNIT}" - UNIT_VALID="1" - ;; - esac - fi - # empty field in GUI or undefined GUI variable now defaults to auto - if [ -z "${CUR_TARGET_VALUE}" -a -z "${CUR_TARGET_UNIT}" ]; - then - if [ ! -z "${CUR_LINK_KBPS}" ]; then - TMP_TARGET_US=$( adapt_target_to_slow_link $CUR_LINK_KBPS ) - TMP_INTERVAL_STRING=$( adapt_interval_to_slow_link $TMP_TARGET_US ) - CUR_TARGET_STRING="target ${TMP_TARGET_US}us ${TMP_INTERVAL_STRING}" - AUTO_TARGET="1" - sqm_debug "get_target defaulting to auto." - else - sqm_warn "required link bandwidth in kbps not passed to get_target()." - fi - fi - # but still allow explicit use of the keyword auto for backward compatibility - case ${CUR_TARGET_UNIT} in - auto|Auto|AUTO) - if [ ! -z "${CUR_LINK_KBPS}" ]; then - TMP_TARGET_US=$( adapt_target_to_slow_link $CUR_LINK_KBPS ) - TMP_INTERVAL_STRING=$( adapt_interval_to_slow_link $TMP_TARGET_US ) - CUR_TARGET_STRING="target ${TMP_TARGET_US}us ${TMP_INTERVAL_STRING}" - AUTO_TARGET="1" - else - sqm_warn "required link bandwidth in kbps not passed to get_target()." - fi - ;; - esac - - case ${CUR_TARGET_UNIT} in - default|Default|DEFAULT) - if [ ! -z "${CUR_LINK_KBPS}" ]; then - CUR_TARGET_STRING="" # return nothing so the default target is not over-ridden... - AUTO_TARGET="1" - sqm_debug "get_target using qdisc default, no explicit target string passed." - else - sqm_warn "required link bandwidth in kbps not passed to get_target()." - fi - ;; - esac - if [ ! -z "${CUR_TARGET}" ]; then - if [ -z "${CUR_TARGET_VALUE}" -o -z "${UNIT_VALID}" ]; then - [ -z "$AUTO_TARGET" ] && sqm_warn "${CUR_TARGET} is not a well formed tc target specifier; e.g.: 5ms (or s, us), or one of the strings auto or default." - fi - fi - ;; - esac - echo $CUR_TARGET_STRING -} - -# for low bandwidth links fq_codels default target of 5ms does not work too well -# so increase target for slow links (note below roughly 2500kbps a single packet -# will take more than 5 ms to be tansfered over the wire) -adapt_target_to_slow_link() { - LINK_BW=$1 - # for ATM the worst case expansion including overhead seems to be 33 clls of - # 53 bytes each - MAX_DELAY=$(( 1000 * 1000 * 33 * 53 * 8 / 1000 )) # Max delay in us at 1kbps - TARGET=$(( ${MAX_DELAY} / ${LINK_BW} )) # note this truncates the decimals - - # do not change anything for fast links - [ "$TARGET" -lt 5000 ] && TARGET=5000 - case ${QDISC} in - *codel|pie) - echo "${TARGET}" - ;; - esac -} - -# codel looks at a whole interval to figure out wether observed latency stayed -# below target if target >= interval that will not work well, so increase -# interval by the same amonut that target got increased -adapt_interval_to_slow_link() { - TARGET=$1 - case ${QDISC} in - *codel) - # Note this is not following codel theory to well as target should - # be 5-10% of interval and the simple addition does not conserve - # that relationship - INTERVAL=$(( (100 - 5) * 1000 + ${TARGET} )) - echo "interval ${INTERVAL}us" - ;; - pie) - ## not sure if pie needs this, probably not - #TUPDATE=$(( (30 - 20) * 1000 + ${TARGET} )) - #echo "tupdate ${TUPDATE}us" - ;; - esac -} - - -# set quantum parameter if available for this qdisc -get_quantum() { - case $QDISC in - *fq_codel|fq_pie|drr) echo quantum $1 ;; - *) ;; - esac -} - -# only show limits to qdiscs that can handle them... -# Note that $LIMIT contains the default limit -get_limit() { - CURLIMIT=$1 - case $QDISC in - *codel|*pie|pfifo_fast|sfq|pfifo) [ -z ${CURLIMIT} ] && CURLIMIT=${LIMIT} # global default limit - ;; - bfifo) [ -z "$CURLIMIT" ] && [ ! -z "$LIMIT" ] && CURLIMIT=$(( ${LIMIT} * $( cat /sys/class/net/${IFACE}/mtu ) )) # bfifo defaults to txquelength * MTU, - ;; - *) sqm_warn "qdisc ${QDISC} does not support a limit" - ;; - esac - sqm_debug "get_limit: $1 CURLIMIT: ${CURLIMIT}" - - if [ ! -z "$CURLIMIT" ]; then - echo "limit ${CURLIMIT}" - fi -} - -get_ecn() { - CURECN=$1 - case ${CURECN} in - ECN) - case $QDISC in - *codel|*pie|*red) - CURECN=ecn - ;; - *) - CURECN="" - ;; - esac - ;; - NOECN) - case $QDISC in - *codel|*pie|*red) - CURECN=noecn - ;; - *) - CURECN="" - ;; - esac - ;; - *) - sqm_warn "ecn value $1 not handled" - ;; - esac - sqm_debug "get_ECN: $1 CURECN: ${CURECN} IECN: ${IECN} EECN: ${EECN}" - echo ${CURECN} - -} - -# This could be a complete diffserv implementation - -diffserv() { - - interface=$1 - prio=1 - - # Catchall - - $TC filter add dev $interface parent 1:0 protocol all prio 999 u32 \ - match ip protocol 0 0x00 flowid 1:12 - - # Find the most common matches fast - - fc 1:0 0x00 1:12 # BE - fc 1:0 0x20 1:13 # CS1 - fc 1:0 0x10 1:11 # IMM - fc 1:0 0xb8 1:11 # EF - fc 1:0 0xc0 1:11 # CS3 - fc 1:0 0xe0 1:11 # CS6 - fc 1:0 0x90 1:11 # AF42 (mosh) - - # Arp traffic - $TC filter add dev $interface protocol arp parent 1:0 prio $prio handle 500 fw flowid 1:11 - - prio=$(($prio + 1)) -} - -eth_setup() { - ethtool -K $IFACE gso off - ethtool -K $IFACE tso off - ethtool -K $IFACE ufo off - ethtool -K $IFACE gro off - - if [ -e /sys/class/net/$IFACE/queues/tx-0/byte_queue_limits ]; then - for i in /sys/class/net/$IFACE/queues/tx-*/byte_queue_limits - do - echo $(( 4 * $( get_mtu ${IFACE} ) )) > $i/limit_max - done - fi -} diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/layer_cake.qos b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/layer_cake.qos deleted file mode 100644 index 27d8163..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/layer_cake.qos +++ /dev/null @@ -1,52 +0,0 @@ -# Cero3 Shaper -# A cake shaper and AQM solution that allows several diffserv marking schemes -# for ethernet gateways - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-5 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller - - -#sm: TODO pass in the cake diffserv keyword - -. ${SQM_LIB_DIR}/defaults.sh -QDISC=cake - -# Default traffic classication is passed in INGRESS_CAKE_OPTS and EGRESS_CAKE_OPTS, defined in defaults.sh now - - -egress() { - SILENT=1 $TC qdisc del dev $IFACE root - $TC qdisc add dev $IFACE root $( get_stab_string ) cake \ - bandwidth ${UPLINK}kbit $( get_cake_lla_string ) ${EGRESS_CAKE_OPTS} ${EQDISC_OPTS} - -} - - -ingress() { - - SILENT=1 $TC qdisc del dev $IFACE handle ffff: ingress - $TC qdisc add dev $IFACE handle ffff: ingress - - SILENT=1 $TC qdisc del dev $DEV root - - [ "$IGNORE_DSCP_INGRESS" -eq "1" ] && INGRESS_CAKE_OPTS="$INGRESS_CAKE_OPTS besteffort" - [ "$ZERO_DSCP_INGRESS" -eq "1" ] && INGRESS_CAKE_OPTS="$INGRESS_CAKE_OPTS wash" - - $TC qdisc add dev $DEV root $( get_stab_string ) cake \ - bandwidth ${DOWNLINK}kbit $( get_cake_lla_string ) ${INGRESS_CAKE_OPTS} ${IQDISC_OPTS} - - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to ifb0 - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV -} - -sqm_prepare_script() { - do_modules - verify_qdisc $QDISC "cake" || return 1 -} diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/layer_cake.qos.help b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/layer_cake.qos.help deleted file mode 100644 index 1cab3ed..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/layer_cake.qos.help +++ /dev/null @@ -1,4 +0,0 @@ -This uses the cake qdisc as a replacement for both htb as shaper and fq_codel as leaf qdisc. -This exercises cake's diffserv profile(s) as different "layers" of priority. -This script requires that cake is selected as qdisc, and forces its usage. -See: http://www.bufferbloat.net/projects/codel/wiki/Cake for more information diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/piece_of_cake.qos b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/piece_of_cake.qos deleted file mode 100644 index ac65eda..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/piece_of_cake.qos +++ /dev/null @@ -1,52 +0,0 @@ -# Cero3 Simple Shaper -# A 1 tin cake shaper for -# ethernet gateways. This is nearly the simplest possible - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-5 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller - - -. ${SQM_LIB_DIR}/defaults.sh -QDISC=cake - - -# to keep this as simple as possible we ignore the *_CAKE_OPTS from defaults.sh -INGRESS_CAKE_OPTS="besteffort" -EGRESS_CAKE_OPTS="besteffort" - - -egress() { - sqm_debug "egress" - SILENT=1 $TC qdisc del dev $IFACE root - $TC qdisc add dev $IFACE root $( get_stab_string ) cake \ - bandwidth ${UPLINK}kbit $( get_cake_lla_string ) ${EGRESS_CAKE_OPTS} ${EQDISC_OPTS} -} - - -ingress() { - sqm_debug "ingress" - - SILENT=1 $TC qdisc del dev $IFACE handle ffff: ingress - $TC qdisc add dev $IFACE handle ffff: ingress - SILENT=1 $TC qdisc del dev $DEV root - - [ "$ZERO_DSCP_INGRESS" -eq "1" ] && INGRESS_CAKE_OPTS="$INGRESS_CAKE_OPTS wash" - - $TC qdisc add dev $DEV root $( get_stab_string ) cake \ - bandwidth ${DOWNLINK}kbit $( get_cake_lla_string ) ${INGRESS_CAKE_OPTS} ${IQDISC_OPTS} - - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to ifb0 - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV -} - -sqm_prepare_script() { - do_modules - verify_qdisc $QDISC "cake" || return 1 -} diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/piece_of_cake.qos.help b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/piece_of_cake.qos.help deleted file mode 100644 index b95e9be..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/piece_of_cake.qos.help +++ /dev/null @@ -1,4 +0,0 @@ -This just uses the cake qdisc as a replacement for both htb as shaper and fq_codel as leaf qdisc. -It just does not come any simpler than this, in other words it truely is a "piece of cake". -This script requires that cake is selected as qdisc, and forces its usage. -See: http://www.bufferbloat.net/projects/codel/wiki/Cake for more information diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/run.sh b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/run.sh deleted file mode 100644 index 6f55ca7..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/run.sh +++ /dev/null @@ -1,130 +0,0 @@ -#!/bin/sh - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller - - -. /lib/functions.sh - -. /etc/sqm/sqm.conf -. ${SQM_LIB_DIR}/functions.sh - -ACTION="${1:-start}" -RUN_IFACE="$2" -LOCKDIR="${SQM_STATE_DIR}/sqm-run.lock" - -check_state_dir -[ -d "${SQM_QDISC_STATE_DIR}" ] || ${SQM_LIB_DIR}/update-available-qdiscs - -stop_statefile() { - local f - f="$1" - # Source the state file prior to stopping; we need the variables saved in - # there. - [ -f "$f" ] && ( . "$f"; - IFACE=$IFACE SCRIPT=$SCRIPT SQM_DEBUG=$SQM_DEBUG \ - SQM_DEBUG_LOG=$SQM_DEBUG_LOG \ - SQM_VERBOSITY_MAX=$SQM_VERBOSITY_MAX \ - SQM_VERBOSITY_MIN=$SQM_VERBOSITY_MIN \ - OUTPUT_TARGET=$OUTPUT_TARGET ${SQM_LIB_DIR}/stop-sqm ) -} - -start_sqm_section() { - local section - section="$1" - export IFACE=$(config_get "$section" interface) - - [ -z "$RUN_IFACE" -o "$RUN_IFACE" = "$IFACE" ] || return - [ "$(config_get "$section" enabled)" -eq 1 ] || return 0 - [ -f "${SQM_STATE_DIR}/${IFACE}.state" ] && return - - export UPLINK=$(config_get "$section" upload) - export DOWNLINK=$(config_get "$section" download) - export LLAM=$(config_get "$section" linklayer_adaptation_mechanism) - export LINKLAYER=$(config_get "$section" linklayer) - export OVERHEAD=$(config_get "$section" overhead) - export STAB_MTU=$(config_get "$section" tcMTU) - export STAB_TSIZE=$(config_get "$section" tcTSIZE) - export STAB_MPU=$(config_get "$section" tcMPU) - export ILIMIT=$(config_get "$section" ilimit) - export ELIMIT=$(config_get "$section" elimit) - export ITARGET=$(config_get "$section" itarget) - export ETARGET=$(config_get "$section" etarget) - export IECN=$(config_get "$section" ingress_ecn) - export EECN=$(config_get "$section" egress_ecn) - export IQDISC_OPTS=$(config_get "$section" iqdisc_opts) - export EQDISC_OPTS=$(config_get "$section" eqdisc_opts) - export TARGET=$(config_get "$section" target) - export QDISC=$(config_get "$section" qdisc) - export SCRIPT=$(config_get "$section" script) - - # The UCI names for these two variables are confusing and should have been - # changed ages ago. For now, keep the bad UCI names but use meaningful - # variable names in the scripts to not break user configs. - export ZERO_DSCP_INGRESS=$(config_get "$section" squash_dscp) - export IGNORE_DSCP_INGRESS=$(config_get "$section" squash_ingress) - - # If SQM_DEBUG or SQM_VERBOSITY_* were passed in via the command line make - # them available to the other scripts this allows to override sqm's log - # level as set in the GUI for quick debugging without GUI accesss. - export SQM_DEBUG=${SQM_DEBUG:-$(config_get "$section" debug_logging)} - export SQM_VERBOSITY_MAX=${SQM_VERBOSITY_MAX:-$(config_get "$section" verbosity)} - export SQM_VERBOSITY_MIN - - "${SQM_LIB_DIR}/start-sqm" -} - -release_lock() { - PID=$(cat "$LOCKDIR/pid") - if [ "$PID" -ne "$$" ]; then - sqm_error "Trying to release lock with wrong PID $PID != $$" - return 1 - fi - - rm -rf "$LOCKDIR" - return 0 -} - -take_lock() { - - if mkdir "$LOCKDIR" 2>/dev/null; then - sqm_trace "Acquired run lock" - echo $$ > "$LOCKDIR/pid" - - trap release_lock 0 - return 0 - fi - PID=$(cat "$LOCKDIR/pid") - sqm_warn "Unable to get run lock - already held by $PID" - return 1 -} - -MAX_TRIES=10 -tries=$MAX_TRIES -while ! take_lock; do - sleep 1 - tries=$((tries - 1)) - if [ "$tries" -eq 0 ]; then - sqm_error "Giving up on getting lock after $MAX_TRIES attempts" - sqm_error "This is a bug; please report it at https://github.com/tohojo/sqm-scripts/issues" - sqm_error "Then, to re-enable sqm-scripts, manually remove $LOCKDIR" - exit 1 - fi -done - -if [ "$ACTION" = "stop" ]; then - if [ -z "$RUN_IFACE" ]; then - # Stopping all active interfaces - for f in ${SQM_STATE_DIR}/*.state; do - stop_statefile "$f" - done - else - stop_statefile "${SQM_STATE_DIR}/${RUN_IFACE}.state" - fi -else - config_load sqm - config_foreach start_sqm_section -fi diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simple.qos b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simple.qos deleted file mode 100644 index 55f3cdf..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simple.qos +++ /dev/null @@ -1,234 +0,0 @@ -################################################################################ -# simple.qos (Cero3 Shaper) -# -# Abstract: -# This is a three band fq_codel and ipv6 enabled shaping script for Ethernet -# gateways. Compared to the complexity that debloat had become this cleanly -# shows a means of going from diffserv marking to prioritization using the -# current tools ip(6)tables and tc. We should note that the complexity of -# debloat exists for a reason, and it is expected that script is run first to -# setup various other parameters such as BQL and ethtool. -# -# (Assume the debloat script has setup the other interfaces.) -# -# Notes: -# This does the right thing with ipv6 traffic. It also tries to leverage -# diffserv to some sane extent. In particular, the 'priority' queue is limited -# to 33% of the total, so EF, and IMM traffic cannot starve other types. The -# rfc suggested 30%. 30% is probably a lot in today's world. -# -# References: -# This alternate shaper attempts to go for 1/u performance in a clever way -# http://git.coverfire.com/?p=linux-qos-scripts.git;a=blob;f=src-3tos.sh;hb=HEAD -# -################################################################################ -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-2016 -# Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller -# -################################################################################ - -. ${SQM_LIB_DIR}/defaults.sh - -################################################################################ - -ipt_setup() { - - ipt -t mangle -N QOS_MARK_${IFACE} - - case $QDISC in - cake*) - sqm_debug "cake does all the diffserv work - no need for iptables rules" - ;; - *) - ipt -t mangle -A QOS_MARK_${IFACE} -j MARK --set-mark 0x2/${IPT_MASK} - # You can go further with classification but... - ipt -t mangle -A QOS_MARK_${IFACE} -m dscp --dscp-class CS1 -j MARK --set-mark 0x3/${IPT_MASK} - ipt -t mangle -A QOS_MARK_${IFACE} -m dscp --dscp-class CS6 -j MARK --set-mark 0x1/${IPT_MASK} - ipt -t mangle -A QOS_MARK_${IFACE} -m dscp --dscp-class EF -j MARK --set-mark 0x1/${IPT_MASK} - ipt -t mangle -A QOS_MARK_${IFACE} -m dscp --dscp-class AF42 -j MARK --set-mark 0x1/${IPT_MASK} - ipt -t mangle -A QOS_MARK_${IFACE} -m tos --tos Minimize-Delay -j MARK --set-mark 0x1/${IPT_MASK} - ;; - esac - - # Turn it on. Preserve classification if already performed - # - #sm: is it correct to do this in $IFACE? Should ingress not be on $DEV? since HTB acts on $DEV? - # - # ZERO also does not work on $DEV (that is the IFB will still see the - # incoming ToS bits whether we squash or not) - # - # ZERO is still useful to protect internal machines... - if [ "$ZERO_DSCP_INGRESS" = "1" ]; then - sqm_debug "Squashing differentiated services code points (DSCP) from ingress." - ipt -t mangle -I PREROUTING -i $IFACE -m dscp ! --dscp 0 -j DSCP --set-dscp-class be - else - sqm_debug "Keeping differentiated services code points (DSCP) from ingress." - ipt -t mangle -A PREROUTING -i $IFACE -m mark --mark 0x00/${IPT_MASK} -g QOS_MARK_${IFACE} - fi - - ipt -t mangle -A POSTROUTING -o $IFACE -m mark --mark 0x00/${IPT_MASK} -g QOS_MARK_${IFACE} - - # The Syn optimization was nice but fq_codel does it for us - # ipt -t mangle -A PREROUTING -i s+ -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j MARK --set-mark 0x01 - # Not sure if this will work. Encapsulation is a problem period - - ipt -t mangle -I PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/${IPT_MASK} # tcp tunnels need ordering - - # Emanating from router, do a little more optimization - # but don't bother with it too much. - - ipt -t mangle -A OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42 - - #Not clear if the second line is needed - #ipt -t mangle -A OUTPUT -o $IFACE -g QOS_MARK_${IFACE} - -} - - - -cake_egress() -{ - $TC qdisc add dev $IFACE root `get_stab_string` $QDISC bandwidth ${CEIL}kbit `get_cake_lla_string` ${EQDISC_OPTS} -} - -egress() { - - CEIL=${UPLINK} - PRIO_RATE=`expr $CEIL / 3` # Ceiling for prioirty - BE_RATE=`expr $CEIL / 6` # Min for best effort - BK_RATE=`expr $CEIL / 6` # Min for background - BE_CEIL=`expr $CEIL - 16` # A little slop at the top - - LQ="quantum `get_htb_quantum $IFACE $CEIL ${ESHAPER_QUANTUM_DUR_US}`" - BURST="`get_htb_burst $IFACE $CEIL ${ESHAPER_BURST_DUR_US}`" - - SILENT=1 $TC qdisc del dev $IFACE root - - case $QDISC in - cake*) cake_egress; return;; - esac - - $TC qdisc add dev $IFACE root handle 1: `get_stab_string` htb default 12 - $TC class add dev $IFACE parent 1: classid 1:1 htb $LQ rate ${CEIL}kbit ceil ${CEIL}kbit $BURST `get_htb_adsll_string` - $TC class add dev $IFACE parent 1:1 classid 1:11 htb $LQ rate 128kbit ceil ${PRIO_RATE}kbit prio 1 `get_htb_adsll_string` - $TC class add dev $IFACE parent 1:1 classid 1:12 htb $LQ rate ${BE_RATE}kbit ceil ${BE_CEIL}kbit $BURST prio 2 `get_htb_adsll_string` - $TC class add dev $IFACE parent 1:1 classid 1:13 htb $LQ rate ${BK_RATE}kbit ceil ${BE_CEIL}kbit $BURST prio 3 `get_htb_adsll_string` - - $TC qdisc add dev $IFACE parent 1:11 handle 110: $QDISC \ - `get_limit ${ELIMIT}` `get_target "${ETARGET}" ${UPLINK}` `get_ecn ${EECN}` `get_quantum 300` `get_flows ${PRIO_RATE}` ${EQDISC_OPTS} - $TC qdisc add dev $IFACE parent 1:12 handle 120: $QDISC \ - `get_limit ${ELIMIT}` `get_target "${ETARGET}" ${UPLINK}` `get_ecn ${EECN}` `get_quantum 300` `get_flows ${BE_RATE}` ${EQDISC_OPTS} - $TC qdisc add dev $IFACE parent 1:13 handle 130: $QDISC \ - `get_limit ${ELIMIT}` `get_target "${ETARGET}" ${UPLINK}` `get_ecn ${EECN}` `get_quantum 300` `get_flows ${BK_RATE}` ${EQDISC_OPTS} - - # Need a catchall rule - - $TC filter add dev $IFACE parent 1:0 protocol all prio 999 u32 \ - match ip protocol 0 0x00 flowid 1:12 - - # FIXME should probably change the filter here to do pre-nat - - $TC filter add dev $IFACE parent 1:0 protocol ip prio 1 handle 1/${IPT_MASK} fw classid 1:11 - $TC filter add dev $IFACE parent 1:0 protocol ip prio 2 handle 2/${IPT_MASK} fw classid 1:12 - $TC filter add dev $IFACE parent 1:0 protocol ip prio 3 handle 3/${IPT_MASK} fw classid 1:13 - - # ipv6 support. Note that the handle indicates the fw mark bucket that is looked for - - $TC filter add dev $IFACE parent 1:0 protocol ipv6 prio 4 handle 1/${IPT_MASK} fw classid 1:11 - $TC filter add dev $IFACE parent 1:0 protocol ipv6 prio 5 handle 2/${IPT_MASK} fw classid 1:12 - $TC filter add dev $IFACE parent 1:0 protocol ipv6 prio 6 handle 3/${IPT_MASK} fw classid 1:13 - - # Arp traffic - - $TC filter add dev $IFACE parent 1:0 protocol arp prio 7 handle 1/${IPT_MASK} fw classid 1:11 - - # ICMP traffic - Don't impress your friends. Deoptimize to manage ping floods - # better instead - - $TC filter add dev $IFACE parent 1:0 protocol ip prio 8 \ - u32 match ip protocol 1 0xff flowid 1:13 - - $TC filter add dev $IFACE parent 1:0 protocol ipv6 prio 9 \ - u32 match ip protocol 1 0xff flowid 1:13 -} - - -cake_ingress() -{ - CAKEARGS= - [ "$IGNORE_DSCP_INGRESS" = "1" ] && CAKEARGS="$CAKEARGS besteffort" - $TC qdisc add dev $DEV root `get_stab_string` $QDISC bandwidth ${DOWNLINK}kbit \ - $CAKEARGS `get_cake_lla_string` ${IQDISC_OPTS} - - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to $DEV - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV -} - -ingress() { - - CEIL=$DOWNLINK - PRIO_RATE=`expr $CEIL / 3` # Ceiling for prioirty - BE_RATE=`expr $CEIL / 6` # Min for best effort - BK_RATE=`expr $CEIL / 6` # Min for background - BE_CEIL=`expr $CEIL - 16` # A little slop at the top - - LQ="quantum `get_htb_quantum $IFACE $CEIL ${ISHAPER_QUANTUM_DUR_US}`" - BURST="`get_htb_burst $IFACE $CEIL ${ISHAPER_BURST_DUR_US}`" - - SILENT=1 $TC qdisc del dev $IFACE handle ffff: ingress - $TC qdisc add dev $IFACE handle ffff: ingress - - SILENT=1 $TC qdisc del dev $DEV root - - case $QDISC in - cake*) cake_ingress; return ;; - esac - - if [ "$IGNORE_DSCP_INGRESS" = "1" ]; then - sqm_debug "Do not perform DSCP based filtering on ingress. (1-tier classification)" - $TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 10 - $TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit $BURST `get_htb_adsll_string` - $TC class add dev $DEV parent 1:1 classid 1:10 htb $LQ rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit $BURST prio 0 `get_htb_adsll_string` - $TC qdisc add dev $DEV parent 1:10 handle 110: $QDISC \ - `get_limit ${ILIMIT}` `get_target "${ITARGET}" ${DOWNLINK}` `get_ecn ${IECN}` `get_flows ${DOWNLINK}` ${IQDISC_OPTS} - else - sqm_debug "Perform DSCP based filtering on ingress. (3-tier classification)" - $TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 12 - $TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${CEIL}kbit ceil ${CEIL}kbit $BURST `get_htb_adsll_string` - $TC class add dev $DEV parent 1:1 classid 1:11 htb $LQ rate 32kbit ceil ${PRIO_RATE}kbit prio 1 `get_htb_adsll_string` - $TC class add dev $DEV parent 1:1 classid 1:12 htb $LQ rate ${BE_RATE}kbit ceil ${BE_CEIL}kbit $BURST prio 2 `get_htb_adsll_string` - $TC class add dev $DEV parent 1:1 classid 1:13 htb $LQ rate ${BK_RATE}kbit ceil ${BE_CEIL}kbit $BURST prio 3 `get_htb_adsll_string` - - $TC qdisc add dev $DEV parent 1:11 handle 110: $QDISC \ - `get_limit ${ILIMIT}` `get_target "${ITARGET}" ${DOWNLINK}` `get_ecn ${IECN}` `get_quantum 500` `get_flows ${PRIO_RATE}` ${IQDISC_OPTS} - $TC qdisc add dev $DEV parent 1:12 handle 120: $QDISC \ - `get_limit ${ILIMIT}` `get_target "${ITARGET}" ${DOWNLINK}` `get_ecn ${IECN}` `get_quantum 1500` `get_flows ${BE_RATE}` ${IQDISC_OPTS} - $TC qdisc add dev $DEV parent 1:13 handle 130: $QDISC \ - `get_limit ${ILIMIT}` `get_target "${ITARGET}" ${DOWNLINK}` `get_ecn ${IECN}` `get_quantum 300` `get_flows ${BK_RATE}` ${IQDISC_OPTS} - - diffserv $DEV - fi - - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to $DEV - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV - -} - -sqm_prepare_script() { - do_modules - verify_qdisc "htb" || return 1 - ipt_setup -} diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simple.qos.help b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simple.qos.help deleted file mode 100644 index b3c0096..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simple.qos.help +++ /dev/null @@ -1 +0,0 @@ -BW-limited three-tier prioritisation scheme with your qdisc on each queue. (default) diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest.qos b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest.qos deleted file mode 100644 index 80fe208..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest.qos +++ /dev/null @@ -1,104 +0,0 @@ -################################################################################ -# simplest.qos (Cero3 Simple Shaper) -# -# Abstract: -# This is a single band fq_codel and ipv6 enabled shaping script for Ethernet -# gateways. This is nearly the simplest possible. With FQ_CODEL, the sparseness -# priority will work pretty well for a casual network. Flow-hashes should not -# overlap much with only a few users. -# -# References: -# This alternate shaper attempts to go for 1/u performance in a clever way -# http://git.coverfire.com/?p=linux-qos-scripts.git;a=blob;f=src-3tos.sh;hb=HEAD -# -################################################################################ -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-2016 -# Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller -# -################################################################################ - -. ${SQM_LIB_DIR}/defaults.sh - -################################################################################ - -cake_egress() -{ - $TC qdisc add dev $IFACE root `get_stab_string` cake bandwidth ${UPLINK}kbit besteffort `get_cake_lla_string` ${EQDISC_OPTS} -} - -egress() { - - LQ="quantum `get_htb_quantum $IFACE ${UPLINK} ${ESHAPER_QUANTUM_DUR_US}`" - BURST="`get_htb_burst $IFACE ${UPLINK} ${ESHAPER_BURST_DUR_US}`" - - SILENT=1 $TC qdisc del dev $IFACE root - - case $QDISC in - cake*) cake_egress; return ;; - esac - - $TC qdisc add dev $IFACE root handle 1: `get_stab_string` htb default 10 - $TC class add dev $IFACE parent 1: classid 1:1 htb $LQ rate ${UPLINK}kbit ceil ${UPLINK}kbit $BURST `get_htb_adsll_string` - $TC class add dev $IFACE parent 1:1 classid 1:10 htb $LQ rate ${UPLINK}kbit ceil ${UPLINK}kbit $BURST prio 0 `get_htb_adsll_string` - $TC qdisc add dev $IFACE parent 1:10 handle 110: $QDISC \ - `get_limit ${ELIMIT}` `get_target "${ETARGET}" ${UPLINK}` `get_ecn ${EECN}` `get_flows ${UPLINK}` ${EQDISC_OPTS} - -} - -cake_ingress() -{ - $TC qdisc add dev $DEV root `get_stab_string` cake bandwidth ${DOWNLINK}kbit besteffort `get_cake_lla_string` ${IQDISC_OPTS} - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to $DEV - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV -} - -ingress() { - sqm_debug "ingress" - SILENT=1 $TC qdisc del dev $IFACE handle ffff: ingress - $TC qdisc add dev $IFACE handle ffff: ingress - - LQ="quantum `get_htb_quantum $IFACE ${DOWNLINK} ${ISHAPER_QUANTUM_DUR_US}`" - BURST="`get_htb_burst $IFACE ${DOWNLINK} ${ISHAPER_BURST_DUR_US}`" - - SILENT=1 $TC qdisc del dev $DEV root - - case $QDISC in - cake*) cake_ingress; return ;; - esac - - $TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 10 - $TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit $BURST `get_htb_adsll_string` - $TC class add dev $DEV parent 1:1 classid 1:10 htb $LQ rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit $BURST prio 0 `get_htb_adsll_string` - - # FIXME: I'd prefer to use a pre-nat filter but we need to detect if nat is on this interface - # AND we need to permute by a random number which we can't do from userspace filters - - # Most high rate flows are REALLY close. This stomps on those harder, but hurts on high rate long distance - #$TC qdisc add dev $DEV parent 1:10 handle 110: $QDISC limit $LIMIT $ECN interval 20ms target 3ms `get_flows ${DOWNLINK}` - $TC qdisc add dev $DEV parent 1:10 handle 110: $QDISC \ - `get_limit ${ILIMIT}` `get_target "${ITARGET}" ${DOWNLINK}` `get_ecn ${IECN}` `get_flows ${DOWNLINK}` ${IQDISC_OPTS} - - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to ifb0 - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV - -} - -sqm_prepare_script() { - do_modules - verify_qdisc "htb" || return 1 -} - -################################################################################ diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest.qos.help b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest.qos.help deleted file mode 100644 index c359256..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest.qos.help +++ /dev/null @@ -1 +0,0 @@ -Simplest possible configuration: HTB rate limiter with your qdisc attached. diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest_tbf.qos b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest_tbf.qos deleted file mode 100644 index 3f7a1c3..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest_tbf.qos +++ /dev/null @@ -1,85 +0,0 @@ -################################################################################ -# simplest_tbf.qos (Simple TBF shaper) -# -# Abstract: -# This is a single band fq_codel and ipv6 enabled shaping script for Ethernet -# gateways. This is nearly the simplest possible. With FQ_CODEL, the sparseness -# priority will work pretty well for a casual network. Flow-hashes should not -# overlap much with only a few users. -# -# Uses TBF instead of HTB as that may give better performance on some -# architectures. -# -# References: -# This alternate shaper attempts to go for 1/u performance in a clever way -# http://git.coverfire.com/?p=linux-qos-scripts.git;a=blob;f=src-3tos.sh;hb=HEAD -# -################################################################################ -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-2017 -# Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller -# -################################################################################ - -. ${SQM_LIB_DIR}/defaults.sh - -################################################################################ - -egress() { - - MTU=$(get_mtu $IFACE) - BURST="$(get_burst ${MTU:-1514} ${UPLINK} ${ESHAPER_BURST_DUR_US})" - BURST=${BURST:-1514} - - SILENT=1 $TC qdisc del dev $IFACE root - - $TC qdisc add dev $IFACE root handle 1: $(get_stab_string) tbf \ - rate ${UPLINK}kbit burst $BURST latency 300ms $(get_htb_adsll_string) - $TC qdisc add dev $IFACE parent 1: handle 110: $QDISC \ - $(get_limit ${ELIMIT}) $(get_target "${ETARGET}" ${UPLINK}) \ - $(get_ecn ${EECN}) $(get_flows ${UPLINK}) ${EQDISC_OPTS} - -} - -ingress() { - sqm_debug "ingress" - SILENT=1 $TC qdisc del dev $IFACE handle ffff: ingress - $TC qdisc add dev $IFACE handle ffff: ingress - - MTU=$(get_mtu $IFACE) - BURST="$(get_burst ${MTU:-1514} ${DOWNLINK} ${ISHAPER_BURST_DUR_US})" - BURST=${BURST:-1514} - - SILENT=1 $TC qdisc del dev $DEV root - - $TC qdisc add dev $DEV root handle 1: $(get_stab_string) tbf \ - rate ${DOWNLINK}kbit burst $BURST latency 300ms $(get_htb_adsll_string) - $TC qdisc add dev $DEV parent 1: handle 110: $QDISC \ - $(get_limit ${ILIMIT}) $(get_target "${ITARGET}" ${DOWNLINK}) \ - $(get_ecn ${IECN}) $(get_flows ${DOWNLINK}) ${IQDISC_OPTS} - - $IP link set dev $DEV up - - # redirect all IP packets arriving in $IFACE to ifb0 - - $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \ - match u32 0 0 flowid 1:1 action mirred egress redirect dev $DEV - -} - -sqm_prepare_script() { - do_modules - verify_qdisc "tbf" || return 1 - - case $QDISC in - cake*) - sqm_warn "Cake is not supported with this script; falling back to FQ-CoDel" - QDISC=fq_codel ;; - esac -} - -################################################################################ diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest_tbf.qos.help b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest_tbf.qos.help deleted file mode 100644 index 3f93f89..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/simplest_tbf.qos.help +++ /dev/null @@ -1,2 +0,0 @@ -Simplest possible configuration (TBF): TBF rate limiter with your qdisc attached. -TBF may give better performance than HTB on some architectures. diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/start-sqm b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/start-sqm deleted file mode 100644 index cd76e01..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/start-sqm +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller - - -[ -n "$IFACE" ] || exit 1 - -. /etc/sqm/sqm.conf -. ${SQM_LIB_DIR}/functions.sh -. ${SQM_LIB_DIR}/defaults.sh -STATE_FILE="${SQM_STATE_DIR}/${IFACE}.state" - -check_state_dir - -# log file for the most recent sqm instance start -if [ "$SQM_DEBUG" -eq "1" ] ; then - SQM_DEBUG_LOG="${SQM_START_LOG}" - OUTPUT_TARGET="${SQM_DEBUG_LOG}" - echo "start-sqm: Log for interface ${IFACE}: $(date)" > "${OUTPUT_TARGET}" -fi - -if [ -z "${SCRIPT}" ] ; then - sqm_error "SCRIPT value is not defined in /etc/sqm/${IFACE}.iface.conf" - sqm_error "Please check your configuration and try again." - exit 1 -fi - -if [ -f "${STATE_FILE}" ]; then - sqm_error "SQM already activated on ${IFACE}." - exit 1 -fi - -# in case of spurious hotplug events, try double check whether the interface is really up -if [ ! -d /sys/class/net/${IFACE} ] ; then - sqm_error "${IFACE} does currently not exist, not even trying to start SQM on nothing." - exit 1 -fi - -if [ "${ENABLED:-1}" -ne "1" ]; then - sqm_log "SQM config disabled on ${IFACE}." - exit 0 -fi - -if [ ! -f "${SQM_LIB_DIR}/$SCRIPT" ]; then - sqm_error "SQM script ${SCRIPT} not found!" - exit 1 -fi - -. "${SQM_LIB_DIR}/$SCRIPT" - -sqm_trace; sqm_trace "$(date): Starting." # Add some space and a date stamp to verbose log output and log files to separate runs -sqm_log "Starting SQM script: ${SCRIPT} on ${IFACE}, in: ${DOWNLINK} Kbps, out: ${UPLINK} Kbps" - -if fn_exists sqm_start ; then - sqm_debug "Using script specific sqm_start function overriding the generic sqm_start_default." - sqm_start && write_state_file ${STATE_FILE} && sqm_log "${SCRIPT} was started on ${IFACE} successfully" -else - sqm_debug "Using generic sqm_start_default function." - sqm_start_default && write_state_file ${STATE_FILE} && sqm_log "${SCRIPT} was started on ${IFACE} successfully" -fi - -exit 0 diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/stop-sqm b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/stop-sqm deleted file mode 100644 index 9a9cbeb..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/stop-sqm +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller - -# allow passing in the IFACE as first command line argument - -[ -n "$IFACE" ] || exit 1 - -. /etc/sqm/sqm.conf -. ${SQM_LIB_DIR}/functions.sh -. ${SQM_LIB_DIR}/defaults.sh - -check_state_dir -# log file for the most recent sqm instance stop -if [ "$SQM_DEBUG" -eq "1" ] ; then - SQM_DEBUG_LOG="${SQM_STOP_LOG}" - OUTPUT_TARGET="${SQM_DEBUG_LOG}" - echo "stop-sqm: Log for interface ${IFACE}: $(date)" > "${OUTPUT_TARGET}" -fi - -if [ ! -f "${SQM_STATE_DIR}/${IFACE}.state" ] ; then - sqm_error "State file does not exist; SQM was not running on interface ${IFACE}" - exit 1 -fi -STATE_FILE="${SQM_STATE_DIR}/${IFACE}.state" - -if [ -z "${SCRIPT}" ] ; then - sqm_error "SCRIPT value is not defined in /etc/sqm/${IFACE}.iface.conf" - sqm_error "Please check your configuration and try again." - exit 1 -fi - -sqm_trace; sqm_trace "$(date): Stopping." # Add some space and a date stamp to verbose log output and log files to separate runs -sqm_log "Stopping SQM on ${IFACE}" - -# make sure to only delete the ifb associated with the current interface -CUR_IFB=$( get_ifb_associated_with_if ${IFACE} ) -[ -z "$CUR_IFB" ] && CUR_IFB=$( ifb_name ${IFACE} ) - -if [ ! -f "${SQM_LIB_DIR}/$SCRIPT" ]; then - sqm_error "SQM script ${SCRIPT} not found!" - exit 1 -fi - -. "${SQM_LIB_DIR}/$SCRIPT" - -sqm_stop -rm -f "${STATE_FILE}" - -exit 0 diff --git a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/update-available-qdiscs b/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/update-available-qdiscs deleted file mode 100644 index c966a19..0000000 --- a/rooter/0optionalapps/ext-throttle/files/usr/lib/sqm/update-available-qdiscs +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -. /etc/sqm/sqm.conf -. ${SQM_LIB_DIR}/functions.sh -. ${SQM_LIB_DIR}/defaults.sh - -[ -d "${SQM_QDISC_STATE_DIR}" ] || mkdir -p "${SQM_QDISC_STATE_DIR}" - -SQM_VERBOSITY_MIN=5 # Silence errors while checking - -for qdisc in $SQM_CHECK_QDISCS; do - [ -f ${SQM_QDISC_STATE_DIR}/$qdisc ] && continue - verify_qdisc $qdisc && touch ${SQM_QDISC_STATE_DIR}/$qdisc -done diff --git a/rooter/0optionalapps/ext-wireguard/files/etc/init.d/wireguard b/rooter/0optionalapps/ext-wireguard/files/etc/init.d/wireguard index 4e49b81..16a34ce 100644 --- a/rooter/0optionalapps/ext-wireguard/files/etc/init.d/wireguard +++ b/rooter/0optionalapps/ext-wireguard/files/etc/init.d/wireguard @@ -84,4 +84,9 @@ start() { config_load wireguard config_foreach chk_start wireguard + if [ -e /etc/crontabs/root ]; then + sed -i '/wireguard_watchdog/d' /etc/crontabs/root + fi + echo '* * * * * /usr/bin/wireguard_watchdog' >> /etc/crontabs/root + /etc/init.d/cron restart } \ No newline at end of file diff --git a/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/model/cbi/wireguard-client.lua b/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/model/cbi/wireguard-client.lua index ec041aa..45e2216 100644 --- a/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/model/cbi/wireguard-client.lua +++ b/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/model/cbi/wireguard-client.lua @@ -59,6 +59,11 @@ pkey = s:option(Value, "privatekey", translate("Private Key :"), translate("Priv pkey.rmempty = true; pkey.optional=false; +il = s:option(ListValue, "wginter", translate("Interface to Use :")); +il:value("0", translate("WG0")) +il:value("1", translate("WG1")) +il.default="0" + bl = s:option(ListValue, "auto", translate("Start on Boot :")); bl:value("0", translate("No")) bl:value("1", translate("Yes")) diff --git a/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/view/wireguard/wireguard.htm b/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/view/wireguard/wireguard.htm index d207f05..cf7544e 100644 --- a/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/view/wireguard/wireguard.htm +++ b/rooter/0optionalapps/ext-wireguard/files/usr/lib/lua/luci/view/wireguard/wireguard.htm @@ -40,10 +40,14 @@ XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "vpn", "wirestatus")%>', null, function(x, data) { + both = {}; + bothbp={}; + iii = 1; for (var key in data) { if (!data.hasOwnProperty(key)) { continue; } var ifname = key; var iface = data[key]; + var s = ""; if (iface.public_key == '(none)') { s += '<%:Interface does not have a public key!%>'; @@ -65,7 +69,16 @@ iface.fwmark ); } - document.getElementById("iinfo").innerHTML = s; + if ( iii == 1 ) + { + document.getElementById("iinfo").innerHTML = s; + document.getElementById("leg").innerHTML = ifname; + } + else + { + document.getElementById("iinfo1").innerHTML = s; + document.getElementById("leg1").innerHTML = ifname; + } for (var i = 0, ilen = iface.peers.length; i < ilen; i++) { var peer = iface.peers[i]; var s = String.format( @@ -105,9 +118,18 @@ bytes_to_str(peer.transfer_rx), bytes_to_str(peer.transfer_tx) ); - document.getElementById("config").innerHTML = icon; - document.getElementById("info").innerHTML = s; + if ( iii == 1 ) + { + document.getElementById("config").innerHTML = icon; + document.getElementById("info").innerHTML = s; + } + else + { + document.getElementById("config1").innerHTML = icon; + document.getElementById("info1").innerHTML = s; + } } + iii = iii + 1; } }); //]]> @@ -116,9 +138,16 @@
      - <%:Interface%> WG0 - -
      +
      + + + + + + +
      +
      <%:Interface %>
      +
        
      @@ -147,6 +176,52 @@
       
      + + + + + + + +
      +
      <%:Interface %>
      +
        
      + + + + + + + + + + + + + + + +
        +
      <%:Configuration%>
      +
         +
      + <%:Collecting data...%> +
      +
        +
      <%:Peer%>
      +
         +
      + <%:Collecting data...%> +
      +
      +
      diff --git a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/conf.sh b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/conf.sh index 436e1f5..5c36ca2 100644 --- a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/conf.sh +++ b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/conf.sh @@ -1,5 +1,9 @@ #!/bin/sh +log() { + modlog "Wireguard Conf" "$@" +} + name=$1 file=$2 auto=$3 @@ -25,6 +29,13 @@ extract() { if [ ! -z "$PRK" ]; then PreSharedKey=$(echo $PRK | cut -d, -f3) fi + INTER=$(echo "$line" | grep "WGinterface" | tr " " ",") + if [ ! -z "$INTER" ]; then + wginter=$(echo $INTER | cut -d, -f3) + if [ "$wginter" -gt 1 ]; then + wginter="1" + fi + fi PRK=$(echo "$line" | grep "Address" | tr " " "#") if [ ! -z "$PRK" ]; then if [ -z $Address ]; then @@ -73,6 +84,8 @@ sed -i -e "s!PresharedKey= !PresharedKey=!g" $file sed -i -e "s!PresharedKey=!PresharedKey = !g" $file sed -i -e "s!Address= !Address=!g" $file sed -i -e "s!Address=!Address = !g" $file +sed -i -e "s!WGinterface=!WGinterface = !g" $file +sed -i -e "s!WGinterface= !WGinterface = !g" $file sed -i -e "s!dns= !dns=!g" $file sed -i -e "s!dns=!dns = !g" $file sed -i -e "s!DNS= !DNS=!g" $file @@ -94,7 +107,9 @@ extract "$linex" PRK=$(echo "$endpoint" | tr ":" ",") endpoint=$(echo $PRK | cut -d, -f1) sport=$(echo $PRK | cut -d, -f2) - +if [ -z "$wginter" ]; then + wginter="0" +fi uci delete wireguard.$name uci set wireguard.$name=wireguard uci set wireguard.$name.auto=$auto @@ -105,6 +120,7 @@ uci set wireguard.$name.presharedkey="$PreSharedKey" uci set wireguard.$name.port="$listenport" uci set wireguard.$name.addresses="$Address" uci set wireguard.$name.dns="$dns" +uci set wireguard.$name.wginter="$wginter" uci set wireguard.$name.publickey="$PublicKey" uci set wireguard.$name.endpoint_host="$endpoint" uci set wireguard.$name.ips="$allowedips" diff --git a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/create.sh b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/create.sh index 9d41829..143abe6 100644 --- a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/create.sh +++ b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/create.sh @@ -33,6 +33,11 @@ do_create() { if [ ! -z $mtu ]; then echo "MTU = "$mtu >> ${PKI_DIR}/package/wg.conf fi + config_get wginter $config wginter + if [ -z"$wginter"]; then + wginter=0 + fi + echo "PrivateKey = "$wginter >> ${PKI_DIR}/package/wg.conf echo " " >> ${PKI_DIR}/package/wg.conf echo "[Peer]" >> ${PKI_DIR}/package/wg.conf PUB=$(uci get wireguard."$WG".publickey) diff --git a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/startvpn.sh b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/startvpn.sh index 352032d..3e00972 100644 --- a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/startvpn.sh +++ b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/startvpn.sh @@ -20,11 +20,12 @@ chk_zone() { do_dns() { cdns=$1 - ldns=$(uci -q get network.wg0.dns) + local ifce=$2 + ldns=$(uci -q get network.wg$ifce.dns) ex=$(echo "$ldns" | grep "$cdns") if [ -z $ex ]; then - log "Add DNS $cdns to WG0" - uci add_list network.wg0.dns="$cdns" + log "Add DNS $cdns to WG$ifce" + uci add_list network.wg$ifce.dns="$cdns" uci commit network /etc/init.d/network reload fi @@ -87,8 +88,9 @@ create_speer() { create_cpeer() { local config=$1 + local ifce=$2 - uci set network.$config="wireguard_wg0" + uci set network.$config="wireguard_wg$ifce" publickey=$(uci -q get wireguard."$config".publickey) uci set network.$config.public_key="$publickey" @@ -176,50 +178,51 @@ handle_server() { } handle_client() { - config_foreach do_delete wireguard_wg0 + ifce=$1 + config_foreach do_delete wireguard_wg$ifce - uci delete network.wg0 - uci set network.wg0="interface" - uci set network.wg0.proto="wireguard" + uci delete network.wg$ifce + uci set network.wg$ifce="interface" + uci set network.wg$ifce.proto="wireguard" auto=$(uci -q get wireguard."$WG".auto) if [ -z $auto ]; then auto="0" fi - uci set network.wg0.auto="$auto" + uci set network.wg$ifce.auto="$auto" mtu=$(uci -q get wireguard."$WG".mtu) if [ ! -z $mtu ]; then - uci set network.wg0.mtu="$mtu" + uci set network.wg$ifce.mtu="$mtu" fi dns=$(uci -q get wireguard."$WG".dns) if [ ! -z $dns ]; then - do_dns $dns + do_dns $dns $ifce fi port=$(uci -q get wireguard."$WG".port) if [ -z $port ]; then port="51280" fi - uci set network.wg0.listen_port="$port" + uci set network.wg$ifce.listen_port="$port" do_port $port udp privatekey=$(uci -q get wireguard."$WG".privatekey) - uci set network.wg0.private_key="$privatekey" + uci set network.wg$ifce.private_key="$privatekey" ips=$(uci -q get wireguard."$WG".addresses)"," cips=$(echo $ips | cut -d, -f1) i=1 while [ ! -z "$cips" ] do - uci add_list network.wg0.addresses="$cips" + uci add_list network.wg$ifce.addresses="$cips" i=$((i+1)) cips=$(echo "$ips" | cut -d, -f"$i") if [ -z "$cips" ]; then break fi done - uci add_list network.wg0.addresses="::/0" + uci add_list network.wg$ifce.addresses="::/0" - create_cpeer $WG + create_cpeer $WG $ifce uci commit network } @@ -298,17 +301,19 @@ if [ $SERVE = "0" ]; then else running=$(uci -q get wireguard.settings.client) log "Client running $running" - if [ $running = 1 ]; then - exit 0 + + INTER=$(uci -q get wireguard."$WG".wginter) + if [ -z "$INTER" ]; then + INTER=0 fi UDP=$(uci -q get wireguard."$WG".udptunnel) if [ $UDP = 1 ]; then udp_client $WG fi - handle_client + handle_client $INTER uci commit network log "Start Interface" - ifup wg0 + ifup wg$INTER sleep 2 uci set wireguard.settings.client="1" fi diff --git a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/stopvpn.sh b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/stopvpn.sh index 91e80dc..9e56adf 100644 --- a/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/stopvpn.sh +++ b/rooter/0optionalapps/ext-wireguard/files/usr/lib/wireguard/stopvpn.sh @@ -44,15 +44,19 @@ if [ $SERVE = "0" ]; then uci add_list network.wg1.addresses="" uci commit network else - ifdown wg0 + INTER=$(uci -q get wireguard."$WG".wginter) + if [ -z "$INTER" ]; then + INTER=0 + fi + ifdown wg$INTER uci set wireguard.settings.client="0" - uci delete network.wg0 - uci set network.wg0=interface - uci set network.wg0.proto="wireguard" - uci set network.wg0.auto="0" - uci set network.wg0.private_key="" - uci set network.wg0.listen_port="" - uci add_list network.wg0.addresses="" + uci delete network.wg$INTER + uci set network.wg$INTER=interface + uci set network.wg$INTER.proto="wireguard" + uci set network.wg$INTER.auto="0" + uci set network.wg$INTER.private_key="" + uci set network.wg$INTER.listen_port="" + uci add_list network.wg$INTER.addresses="" uci commit network fi UDP=$(uci get wireguard."$WG".udptunnel) diff --git a/rooter/0optionalapps/libmicroxml/Makefile b/rooter/0optionalapps/libmicroxml/Makefile deleted file mode 100644 index b9fa2f3..0000000 --- a/rooter/0optionalapps/libmicroxml/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -# -# Copyright (C) 2012-2014 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=libmicroxml -PKG_VERSION:=2015-03-18 -PKG_RELEASE=$(PKG_SOURCE_VERSION) - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/pivasoftware/microxml.git -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=caa8d3e6887f5c70e54df555dd78e4e45cfa74cc -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz - -PKG_FIXUP:=autoreconf - -include $(INCLUDE_DIR)/package.mk - -define Package/libmicroxml - SECTION:=libs - CATEGORY:=Libraries - TITLE:=XML library - MAINTAINER:=Luka Perkov -endef - -define Package/libmicroxml/description - A micro sized XML library -endef - -CONFIGURE_ARGS += \ - --disable-threads \ - --enable-static \ - --enable-shared - -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include - $(CP) $(PKG_BUILD_DIR)/microxml.h $(1)/usr/include - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/libmicroxml.so* $(1)/usr/lib - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig - $(CP) $(PKG_BUILD_DIR)/microxml.pc $(1)/usr/lib/pkgconfig -endef - -define Package/libmicroxml/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/libmicroxml.so* $(1)/usr/lib -endef - -$(eval $(call BuildPackage,libmicroxml)) diff --git a/rooter/0optionalapps/luci-app-dnsmasq-ipset/files/usr/lib/lua/luci/controller/dnsmasq-ipset.lua b/rooter/0optionalapps/luci-app-dnsmasq-ipset/files/usr/lib/lua/luci/controller/dnsmasq-ipset.lua index e1514b0..d0a49b0 100644 --- a/rooter/0optionalapps/luci-app-dnsmasq-ipset/files/usr/lib/lua/luci/controller/dnsmasq-ipset.lua +++ b/rooter/0optionalapps/luci-app-dnsmasq-ipset/files/usr/lib/lua/luci/controller/dnsmasq-ipset.lua @@ -3,13 +3,10 @@ module("luci.controller.dnsmasq-ipset", package.seeall) -I18N = require "luci.i18n" -translate = I18N.translate - function index() if not nixio.fs.access("/etc/config/dnsmasq-ipset") then return end - entry({"admin", "network", "dnsmasq-ipset"}, cbi("dnsmasq-ipset"), _(translate("DNSmasq IP-Set")), 60).dependent = true + entry({"admin", "network", "dnsmasq-ipset"}, cbi("dnsmasq-ipset"), _("DNSmasq IP-Set"), 60).dependent = true end diff --git a/rooter/0optionalapps/luci-app-hotspot/files/etc/hotplug.d/iface/99-travelmate-iface b/rooter/0optionalapps/luci-app-hotspot/files/etc/hotplug.d/iface/99-travelmate-iface index 1e1c211..c075669 100644 --- a/rooter/0optionalapps/luci-app-hotspot/files/etc/hotplug.d/iface/99-travelmate-iface +++ b/rooter/0optionalapps/luci-app-hotspot/files/etc/hotplug.d/iface/99-travelmate-iface @@ -1,12 +1,13 @@ #!/bin/sh -if [ "$ACTION" = ifup -a "$INTERFACE" = "wwan" ]; then +wif=$(uci -q get travelmate.global.freq) +if [ "$ACTION" = ifup -a "$INTERFACE" = "wwan$wif" ]; then exit 1 fi -if [ "$ACTION" = ifdown -a "$INTERFACE" = "wwan" ]; then +if [ "$ACTION" = ifdown -a "$INTERFACE" = "wwan$wif" ]; then + wifilog "HOTSPOT" "hotplug (iface): action='$ACTION' interface='$INTERFACE'" conn=$(uci -q get travelmate.global.connecting) - wif=$(uci -q get travelmate.global.freq) if [ "$conn" != "1" ]; then uci -q set wireless.wwan$wif.ssid="Hotspot Manager Interface" uci -q set wireless.wwan$wif.encryption="none" @@ -30,6 +31,7 @@ if [ "$ACTION" = ifdown -a "$INTERFACE" = "wwan" ]; then uci set travelmate.global.lost=$lost uci set travelmate.global.delay="30" uci commit travelmate + sleep 10 /usr/lib/hotspot/travelmate.sh & exit 0 fi diff --git a/rooter/0optionalapps/luci-app-hotspot/files/etc/init.d/travelmate b/rooter/0optionalapps/luci-app-hotspot/files/etc/init.d/travelmate index 7357870..565844b 100644 --- a/rooter/0optionalapps/luci-app-hotspot/files/etc/init.d/travelmate +++ b/rooter/0optionalapps/luci-app-hotspot/files/etc/init.d/travelmate @@ -69,12 +69,16 @@ log "Hotspot Firewall" if [ -z $PRO ]; then uci set network.wwan2=interface uci set network.wwan2.proto=dhcp + uci set network.wwan2.metric='2' uci set network.wwan26=interface uci set network.wwan26.proto=dhcpv6 + uci set network.wwan26.metric='2' uci set network.wwan5=interface uci set network.wwan5.proto=dhcp + uci set network.wwan5.metric='2' uci set network.wwan56=interface uci set network.wwan56.proto=dhcpv6 + uci set network.wwan56.metric='2' uci commit network fi config_load firewall diff --git a/rooter/0optionalapps/luci-app-hotspot/files/usr/lib/hotspot/travelmate.sh b/rooter/0optionalapps/luci-app-hotspot/files/usr/lib/hotspot/travelmate.sh index a31d4e0..81574d7 100644 --- a/rooter/0optionalapps/luci-app-hotspot/files/usr/lib/hotspot/travelmate.sh +++ b/rooter/0optionalapps/luci-app-hotspot/files/usr/lib/hotspot/travelmate.sh @@ -22,7 +22,7 @@ trm_iw=1 trm_auto=$(uci -q get travelmate.global.trm_auto) check_wwan() { - uci set travelmate.global.ssid="0" + uci set travelmate.global.ssid="8" wif=$(uci -q get travelmate.global.freq) if [ -z "$wif" ]; then uci set travelmate.global.freq="2" @@ -280,7 +280,7 @@ f_main() cnt=0 delay=10 reconn=$(uci -q get travelmate.global.reconn) - while [ ${cnt} -le $reconn ] + while [ ${cnt} -lt $reconn ] do f_log "info" " Retry Count ${cnt}" if [ $reconn -eq 99 ]; then @@ -381,8 +381,10 @@ f_main() # No connection to any in list cnt=$((cnt+1)) if [ $reconn -gt 0 ]; then - f_log "info " "Sleep before retrying" - sleep 30 + if [ ${cnt} -lt $reconn ]; then + f_log "info " "Sleep before retrying" + sleep 30 + fi fi # repeat scan and connect done diff --git a/rooter/0optionalapps/luci-app-iperf/files/etc/config/iperf b/rooter/0optionalapps/luci-app-iperf/files/etc/config/iperf deleted file mode 100644 index 911c3a1..0000000 --- a/rooter/0optionalapps/luci-app-iperf/files/etc/config/iperf +++ /dev/null @@ -1,96 +0,0 @@ -config server 'bouygues' - option host 'bouygues.iperf.fr' - option ipv4 '1' - option ipv6 '1' - option speed '10000' - option ports '5200,5201,5202,5203,5204,5205,5206,5207,5208,5209' - option tcp '1' - option udp '0' - option location 'Europe' - -config server 'online_ipv4' - option host 'ping.online.net' - option ipv4 '1' - option ipv6 '0' - option speed '10000' - option ports '5200,5201,5202,5203,5204,5205,5206,5207,5208,5209' - option tcp '1' - option udp '1' - option location 'Europe' - -config server 'online_ipv6' - option host 'ping.online.net' - option ipv4 '0' - option ipv6 '1' - option speed '10000' - option ports '5200,5201,5202,5203,5204,5205,5206,5207,5208,5209' - option tcp '1' - option udp '1' - option location 'Europe' - -config server 'serverius' - option host 'speedtest.serverius.net' - option ipv4 '1' - option ipv6 '1' - option speed '10000' - option ports '5002' - option tcp '1' - option udp '1' - option location 'Europe' - -config server 'eenet' - option host 'iperf.eenet.ee' - option ipv4 '1' - option ipv6 '0' - option ports '5201' - option tcp '1' - option udp '1' - option location 'Europe' - -config server 'volia' - option host 'iperf.volia.net' - option ipv4 '1' - option ipv6 '0' - option ports '5201' - option tcp '1' - option udp '1' - option location 'Europe' - -config server 'it_north' - option host 'iperf.it-north.net' - option ipv4 '1' - option ipv6 '0' - option speed '1000' - option ports '5200,5201,5202,5203,5204,5205,5206,5207,5208,5209' - option tcp '1' - option udp '1' - option location 'Asia' - -config server 'biznet' - option host 'iperf.biznetnetworkds.com' - option ipv4 '1' - option ipv6 '1' - option speed '1000' - option ports '5201,5202,5203' - option tcp '1' - option udp '0' - option location 'Asia' - -config server 'scottlinux' - option host 'iperf.scottlinux.com' - option ipv4 '1' - option ipv6 '1' - option speed '1000' - option ports '5201' - option tcp '1' - option udp '1' - option location 'America' - -config server 'he' - option host 'iperf.he.net' - option ipv4 '1' - option ipv6 '1' - option ports '5201' - option tcp '1' - option udp '1' - option location 'America' diff --git a/rooter/0optionalapps/luci-app-iperf/files/usr/lib/lua/luci/controller/iperf.lua b/rooter/0optionalapps/luci-app-iperf/files/usr/lib/lua/luci/controller/iperf.lua deleted file mode 100644 index 9d3e197..0000000 --- a/rooter/0optionalapps/luci-app-iperf/files/usr/lib/lua/luci/controller/iperf.lua +++ /dev/null @@ -1,56 +0,0 @@ -local uci = luci.model.uci.cursor() -local ut = require "luci.util" - -module("luci.controller.iperf", package.seeall) - -function index() - --entry({"admin", "openmptcprouter", "iperf"}, cbi("iperf"), _("iperf")) - entry({"admin", "services", "iperf"}, alias("admin", "services", "iperf", "test"), _("iPerf Speed Test"),72) - entry({"admin", "services", "iperf", "test"}, template("iperf/test"), nil,1) - entry({"admin", "services", "iperf", "run_test"}, post("run_test")).leaf = true -end - -function run_test(server,proto,mode,updown,omit,parallel,transmit,bitrate) - luci.http.prepare_content("text/plain") - local iperf - local addr = uci:get("iperf",server,"host") - local ports = uci:get("iperf",server,"ports") - local user = uci:get("iperf",server,"user") or "" - local password = uci:get("iperf",server,"password") or "" - local key = uci:get("iperf",server,"key") or "" - local options = "" - if user ~= "" and password ~= "" and key ~= "" then - luci.sys.call("echo " .. key .. " | base64 -d > /tmp/iperf.pem") - options = options .. " --username " .. user .. " --rsa-public-key-path /tmp/iperf.pem" - end - if mode == "udp" then - options = options .. " -u -b " .. bitrate - end - if updown ~= "upload" then - options = options .. " -R" - end - local ipv = "4" - if proto == "ipv6" then - local ipv = "6" - end - - local t={} - for pt in ports:gmatch("([^,%s]+)") do - table.insert(t,pt) - end - local port = t[ math.random( #t ) ] - if password ~= "" then - iperf = io.popen("omr-iperf -P %s -%s -O %s -t %s -J -Z %s" % {parallel,ipv,omit,transmit,options}) - else - iperf = io.popen("iperf3 -c %s -P %s -%s -p %s -O %s -t %s -J -Z %s" % {ut.shellquote(addr),parallel,ipv,port,omit,transmit,options}) - end - if iperf then - while true do - local ln = iperf:read("*l") - if not ln then break end - luci.http.write(ln) - luci.http.write("\n") - end - end - return -end \ No newline at end of file diff --git a/rooter/0optionalapps/luci-app-iperf/files/usr/lib/lua/luci/view/iperf/test.htm b/rooter/0optionalapps/luci-app-iperf/files/usr/lib/lua/luci/view/iperf/test.htm deleted file mode 100644 index 03d0150..0000000 --- a/rooter/0optionalapps/luci-app-iperf/files/usr/lib/lua/luci/view/iperf/test.htm +++ /dev/null @@ -1,185 +0,0 @@ -<%+header%> - -<% - local uci = require("luci.model.uci").cursor() -%> - - - - -<% if stderr and #stderr > 0 then %>
      <%=pcdata(stderr)%>
      <% end %> - -
      -

      <%:iPerf Speed Test%>

      -
      <%:Test Internet speeds using iPerf.%>
      -
      - <%:Settings%> -
      -
      - -
      - -
      -
      -
      - -
      - -
      -
      -
      - -
      - -
      -
      - <%:0 for unlimited.%> -
      -
      -
      - -
      - -
      - -
      -
      -
      - -
      - -
      -
      -
      - -
      - -
      -
      - <%:Server VPS IP is bypassed, so this will test only default route speed.%> -
      -
      -
      - - - -
      -
      - - -
      - - -
      -<%+footer%> diff --git a/rooter/0optionalapps/luci-app-iperf/files/usr/share/luci/menu.d/luci-app-iperf.json b/rooter/0optionalapps/luci-app-iperf/files/usr/share/luci/menu.d/luci-app-iperf.json deleted file mode 100644 index dd6151e..0000000 --- a/rooter/0optionalapps/luci-app-iperf/files/usr/share/luci/menu.d/luci-app-iperf.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "admin/services/iperf": { - "title": "iPerf", - "order": 10, - "action": { - "type": "template", - "path": "iperf/test" - }, - "depends": { - "acl": [ "luci-app-iperf" ] - } - } -} diff --git a/rooter/0optionalapps/luci-app-iperf/files/usr/share/rpcd/acl.d/luci-app-iperf.json b/rooter/0optionalapps/luci-app-iperf/files/usr/share/rpcd/acl.d/luci-app-iperf.json deleted file mode 100644 index c851828..0000000 --- a/rooter/0optionalapps/luci-app-iperf/files/usr/share/rpcd/acl.d/luci-app-iperf.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "luci-app-iperf": { - "description": "Grant UCI access for luci-app-iperf", - "read": { - "uci": [ "iperf" ] - }, - "write": { - "uci": [ "iperf" ] - } - } -} \ No newline at end of file diff --git a/rooter/0optionalapps/luci-app-iperf/Makefile b/rooter/0optionalapps/luci-app-nft-qos/Makefile similarity index 55% rename from rooter/0optionalapps/luci-app-iperf/Makefile rename to rooter/0optionalapps/luci-app-nft-qos/Makefile index 264060e..94bf539 100644 --- a/rooter/0optionalapps/luci-app-iperf/Makefile +++ b/rooter/0optionalapps/luci-app-nft-qos/Makefile @@ -3,32 +3,32 @@ #Copyright GNU act. include $(TOPDIR)/rules.mk -PKG_NAME:=luci-app-iperf +PKG_NAME:=luci-app-nft-qos PKG_VERSION:=1.000 PKG_RELEASE:=1 PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool include $(INCLUDE_DIR)/package.mk -define Package/luci-app-iperf +define Package/luci-app-nft-qos SECTION:=luci CATEGORY:=LuCI - DEPENDS:=+iperf3-ssl + DEPENDS:=+nft-qos SUBMENU:=3. Applications - TITLE:=support for Iperf + TITLE:=support for NFT over QOS PKGARCH:=all endef -define Package/luci-app-iperf/description - Helper scripts to enable Iperf +define Package/luci-app-nft-qos/description + Helper scripts to enable NFT over QOS endef define Build/Compile endef -define Package/luci-app-iperf/install +define Package/luci-app-nft-qos/install $(CP) ./files/* $(1)/ endef -$(eval $(call BuildPackage,luci-app-iperf)) +$(eval $(call BuildPackage,luci-app-nft-qos)) diff --git a/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/controller/nft-qos.lua b/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/controller/nft-qos.lua new file mode 100644 index 0000000..637eb11 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/controller/nft-qos.lua @@ -0,0 +1,55 @@ +-- Copyright 2018 Rosy Song +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.nft-qos", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/nft-qos") then + return + end + + entry({"admin", "status", "realtime", "rate"}, + template("nft-qos/rate"), _("Rate"), 5).leaf = true + entry({"admin", "status", "realtime", "rate_status"}, + call("action_rate")).leaf = true + entry({"admin", "services", "nft-qos"}, cbi("nft-qos/nft-qos"), + _("Qos over Nftables"), 60) +end + +function _action_rate(rv, n) + local c = nixio.fs.access("/proc/net/ipv6_route") and + io.popen("nft list chain inet nft-qos-monitor " .. n .. " 2>/dev/null") or + io.popen("nft list chain ip nft-qos-monitor " .. n .. " 2>/dev/null") + + if c then + for l in c:lines() do + local _, i, p, b = l:match( + '^%s+ip ([^%s]+) ([^%s]+) counter packets (%d+) bytes (%d+)' + ) + if i and p and b then + -- handle expression + rv[#rv + 1] = { + rule = { + family = "inet", + table = "nft-qos-monitor", + chain = n, + handle = 0, + expr = { + { match = { right = i } }, + { counter = { packets = p, bytes = b } } + } + } + } + end + end + c:close() + end +end + +function action_rate() + luci.http.prepare_content("application/json") + local data = { nftables = {} } + _action_rate(data.nftables, "upload") + _action_rate(data.nftables, "download") + luci.http.write_json(data) +end diff --git a/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/model/cbi/nft-qos/nft-qos.lua b/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/model/cbi/nft-qos/nft-qos.lua new file mode 100644 index 0000000..61a6d76 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/model/cbi/nft-qos/nft-qos.lua @@ -0,0 +1,229 @@ +-- Copyright 2018 Rosy Song +-- Licensed to the public under the Apache License 2.0. + +local uci = require("luci.model.uci").cursor() +local wa = require("luci.tools.webadmin") +local fs = require("nixio.fs") +local ipc = require("luci.ip") + +local def_rate_dl = uci:get("nft-qos", "default", "static_rate_dl") +local def_rate_ul = uci:get("nft-qos", "default", "static_rate_ul") +local def_unit_dl = uci:get("nft-qos", "default", "static_unit_dl") +local def_unit_ul = uci:get("nft-qos", "default", "static_unit_ul") + +local def_up = uci:get("nft-qos", "default", "dynamic_bw_up") +local def_down = uci:get("nft-qos", "default", "dynamic_bw_down") + +local limit_enable = uci:get("nft-qos", "default", "limit_enable") +local limit_type = uci:get("nft-qos", "default", "limit_type") +local enable_priority = uci:get("nft-qos", "default", "priority_enable") + +local has_ipv6 = fs.access("/proc/net/ipv6_route") + +m = Map("nft-qos", translate("Qos over Nftables")) + +-- +-- Taboptions +-- +s = m:section(TypedSection, "default", translate("NFT-QoS Settings")) +s.addremove = false +s.anonymous = true + +s:tab("limit", "Limit Rate") +s:tab("priority", "Traffic Priority") + +-- +-- Static +-- +o = s:taboption("limit", Flag, "limit_enable", translate("Limit Enable"), translate("Enable Limit Rate Feature")) +o.default = limit_enable or o.enabled +o.rmempty = false + +o = s:taboption("limit", ListValue, "limit_type", translate("Limit Type"), translate("Type of Limit Rate")) +o.default = limit_static or "static" +o:depends("limit_enable","1") +o:value("static", "Static") +o:value("dynamic", "Dynamic") + +o = s:taboption("limit", Value, "static_rate_dl", translate("Default Download Rate"), translate("Default value for download rate")) +o.datatype = "uinteger" +o.default = def_rate_dl or '50' +o:depends("limit_type","static") + +o = s:taboption("limit", ListValue, "static_unit_dl", translate("Default Download Unit"), translate("Default unit for download rate")) +o.default = def_unit_dl or "kbytes" +o:depends("limit_type","static") +o:value("bytes", "Bytes/s") +o:value("kbytes", "KBytes/s") +o:value("mbytes", "MBytes/s") + +o = s:taboption("limit", Value, "static_rate_ul", translate("Default Upload Rate"), translate("Default value for upload rate")) +o.datatype = "uinteger" +o.default = def_rate_ul or '50' +o:depends("limit_type","static") + +o = s:taboption("limit", ListValue, "static_unit_ul", translate("Default Upload Unit"), translate("Default unit for upload rate")) +o.default = def_unit_ul or "kbytes" +o:depends("limit_type","static") +o:value("bytes", "Bytes/s") +o:value("kbytes", "KBytes/s") +o:value("mbytes", "MBytes/s") + +-- +-- Dynamic +-- +o = s:taboption("limit", Value, "dynamic_bw_down", translate("Download Bandwidth (Mbps)"), translate("Default value for download bandwidth")) +o.default = def_up or '100' +o.datatype = "uinteger" +o:depends("limit_type","dynamic") + +o = s:taboption("limit", Value, "dynamic_bw_up", translate("Upload Bandwidth (Mbps)"), translate("Default value for upload bandwidth")) +o.default = def_down or '100' +o.datatype = "uinteger" +o:depends("limit_type","dynamic") + +o = s:taboption("limit", Value, "dynamic_cidr", translate("Target Network (IPv4/MASK)"), translate("Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc")) +o.datatype = "cidr4" +ipc.routes({ family = 4, type = 1 }, function(rt) o.default = rt.dest end) +o:depends("limit_type","dynamic") + +if has_ipv6 then + o = s:taboption("limit", Value, "dynamic_cidr6", translate("Target Network6 (IPv6/MASK)"), translate("Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc")) + o.datatype = "cidr6" + o:depends("limit_type","dynamic") +end + +o = s:taboption("limit", DynamicList, "limit_whitelist", translate("White List for Limit Rate")) +o.datatype = "ipaddr" +o:depends("limit_enable","1") + +-- +-- Priority +-- +o = s:taboption("priority", Flag, "priority_enable", translate("Enable Traffic Priority"), translate("Enable this feature")) +o.default = enable_priority or o.enabled +o.rmempty = false + +o = s:taboption("priority", ListValue, "priority_netdev", translate("Default Network Interface"), translate("Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc")) +o:depends("priority_enable", "1") +wa.cbi_add_networks(o) + +-- +-- Static Limit Rate - Download Rate +-- +if limit_enable == "1" and limit_type == "static" then + +x = m:section(TypedSection, "download", translate("Static QoS-Download Rate")) +x.anonymous = true +x.addremove = true +x.template = "cbi/tblsection" + +o = x:option(Value, "hostname", translate("Hostname")) +o.datatype = "hostname" +o.default = 'undefined' + +if has_ipv6 then + o = x:option(Value, "ipaddr", translate("IP Address(V4 / V6)")) +else + o = x:option(Value, "ipaddr", translate("IP Address(V4 Only)")) +end +o.datatype = "ipaddr" +if nixio.fs.access("/tmp/dhcp.leases") or nixio.fs.access("/var/dhcp6.leases") then + o.titleref = luci.dispatcher.build_url("admin", "status", "overview") +end + +o = x:option(Value, "macaddr", translate("MAC (optional)")) +o.rmempty = true +o.datatype = "macaddr" + +o = x:option(Value, "rate", translate("Rate")) +o.default = def_rate_dl or '50' +o.size = 4 +o.datatype = "uinteger" + +o = x:option(ListValue, "unit", translate("Unit")) +o.default = def_unit_dl or "kbytes" +o:value("bytes", "Bytes/s") +o:value("kbytes", "KBytes/s") +o:value("mbytes", "MBytes/s") + +-- +-- Static Limit Rate - Upload Rate +-- +y = m:section(TypedSection, "upload", translate("Static QoS-Upload Rate")) +y.anonymous = true +y.addremove = true +y.template = "cbi/tblsection" + +o = y:option(Value, "hostname", translate("Hostname")) +o.datatype = "hostname" +o.default = 'undefined' + +if has_ipv6 then + o = y:option(Value, "ipaddr", translate("IP Address(V4 / V6)")) +else + o = y:option(Value, "ipaddr", translate("IP Address(V4 Only)")) +end +o.datatype = "ipaddr" +if nixio.fs.access("/tmp/dhcp.leases") or nixio.fs.access("/var/dhcp6.leases") then + o.titleref = luci.dispatcher.build_url("admin", "status", "overview") +end + +o = y:option(Value, "macaddr", translate("MAC (optional)")) +o.rmempty = true +o.datatype = "macaddr" + +o = y:option(Value, "rate", translate("Rate")) +o.default = def_rate_ul or '50' +o.size = 4 +o.datatype = "uinteger" + +o = y:option(ListValue, "unit", translate("Unit")) +o.default = def_unit_ul or "kbytes" +o:value("bytes", "Bytes/s") +o:value("kbytes", "KBytes/s") +o:value("mbytes", "MBytes/s") + +end + +-- +-- Traffic Priority Settings +-- +if enable_priority == "1" then + +s = m:section(TypedSection, "priority", translate("Traffic Priority Settings")) +s.anonymous = true +s.addremove = true +s.template = "cbi/tblsection" + +o = s:option(ListValue, "protocol", translate("Protocol")) +o.default = "tcp" +o:value("tcp", "TCP") +o:value("udp", "UDP") +o:value("udplite", "UDP-Lite") +o:value("sctp", "SCTP") +o:value("dccp", "DCCP") + +o = s:option(ListValue, "priority", translate("Priority")) +o.default = "1" +o:value("-400", "1") +o:value("-300", "2") +o:value("-225", "3") +o:value("-200", "4") +o:value("-150", "5") +o:value("-100", "6") +o:value("0", "7") +o:value("50", "8") +o:value("100", "9") +o:value("225", "10") +o:value("300", "11") + +o = s:option(Value, "service", translate("Service"), translate("e.g. https, 23, (separator is comma)")) +o.default = '?' + +o = s:option(Value, "comment", translate("Comment")) +o.default = '?' + +end + +return m diff --git a/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/view/nft-qos/rate.htm b/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/view/nft-qos/rate.htm new file mode 100644 index 0000000..5f9cb57 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/files/usr/lib/lua/luci/view/nft-qos/rate.htm @@ -0,0 +1,167 @@ +<%# + Copyright 2018 Rosy Song + Licensed to the public under the Apache License 2.0. +-%> + +<%+header%> + + + +

      <%:Realtime Rate%>

      + +
      <%:This page gives an overview over currently download/upload rate.%>
      + +
      + <%:Realtime Download Rate%> +
      +
      +
      +
      <%:IP Address%>
      +
      <%:Download Rate%>
      +
      <%:Bytes Total%>
      +
      <%:Packets Total%>
      +
      +
      +
      + <%:Collecting data...%> +
      +
      +
      +
      +
      + +
      + <%:Realtime Upload Rate%> +
      +
      +
      +
      <%:IP Address%>
      +
      <%:Upload Rate%>
      +
      <%:Bytes Total%>
      +
      <%:Packets Total%>
      +
      +
      +
      + <%:Collecting data...%> +
      +
      +
      +
      +
      + +<%+footer%> diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/bg/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/bg/nft-qos.po new file mode 100644 index 0000000..6bfdc6b --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/bg/nft-qos.po @@ -0,0 +1,233 @@ +msgid "" +msgstr "" +"Language: bg\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/ca/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/ca/nft-qos.po new file mode 100644 index 0000000..c2eef3c --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/ca/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-01-10 12:23+0000\n" +"Last-Translator: Adolfo Jayme Barrientos \n" +"Language-Team: Catalan \n" +"Language: ca\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10.1\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "S’estan recollint dades…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Nom de l’amfitrió" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Unitat" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/cs/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/cs/nft-qos.po new file mode 100644 index 0000000..acc9a0f --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/cs/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-02-04 05:03+0000\n" +"Last-Translator: Pavel Borecki \n" +"Language-Team: Czech \n" +"Language: cs\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"X-Generator: Weblate 3.11-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Shromažďování údajů…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Komentář" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Název počítače" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP adresa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Údaje nejsou k dispozici" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokol" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/de/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/de/nft-qos.po new file mode 100644 index 0000000..2c14fe3 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/de/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-07-11 21:29+0000\n" +"Last-Translator: ssantos \n" +"Language-Team: German \n" +"Language: de\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.2-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Bytes Gesamt" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Sammle Daten..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Kommentar" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Standard-Downloadrate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Standard-Download-Einheit" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Standard-Netzwerkschnittstelle" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Standard-Uploadrate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Standard-Upload-Einheit" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "Standardeinheit für Downloadrate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Standardeinheit für Upload-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "Standardwert für Download-Bandbreite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "Standardwert für Downloadrate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Standardwert für Upload-Bandbreite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Standardwert für Upload-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "Download-Bandbreite (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Download-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Aktiviere die Limit-Rate-Funktion" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Aktiviere Traffic-Priorisierung" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "Diese Funktion aktivieren" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Hostname" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP-Adresse" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "Limit aktivieren" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Limit-Typ" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (optional)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "NFT-QoS-Einstellungen" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Keine Informationen verfügbar" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Pakete Gesamt" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Priorität" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokoll" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "Rate" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Echtzeit-Downloadrate" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "Echtzeit-Rate" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Echtzeit-Uploadrate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Service" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "Statische QoS-Download-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "Statische QoS-Upload-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "Zielnetzwerk (IPv4/MASK)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "Zielnetzwerk6 (IPv6/MASK)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" +"Diese Seite gibt einen Überblick über die aktuelle Download-/Uploadrate." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "Einstellungen für Traffic-Priorität" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "Typ der Limit-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Einheit" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "Upload-Bandbreite (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "Uploadrate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "Whitelist für die Limit-Rate" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "z.B. https, 23, (Trennzeichen ist Komma)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/el/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/el/nft-qos.po new file mode 100644 index 0000000..57aa172 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/el/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-12-01 16:16+0000\n" +"Last-Translator: Marios Koutsoukis \n" +"Language-Team: Greek \n" +"Language: el\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.4-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Συλλογή δεδομένων..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Όνομα κεντρικού υπολογιστή" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/en/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/en/nft-qos.po new file mode 100644 index 0000000..f3e6b42 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/en/nft-qos.po @@ -0,0 +1,233 @@ +msgid "" +msgstr "" +"Language: en\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/es/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/es/nft-qos.po new file mode 100644 index 0000000..f12d261 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/es/nft-qos.po @@ -0,0 +1,246 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2020-09-18 18:36+0000\n" +"Last-Translator: Franco Castillo \n" +"Language-Team: Spanish \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Total de bytes" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Recolectando datos…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Comentario" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Velocidad de descarga predeterminada" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Unidad de descarga predeterminada" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Interfaz de red predeterminada" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Velocidad de carga predeterminada" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Unidad de carga predeterminada" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "Unidad predeterminada para la velocidad de descarga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Unidad predeterminada para la velocidad de carga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "Valor predeterminado para el ancho de banda de descarga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "Valor predeterminado para la velocidad de descarga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Valor predeterminado para el ancho de banda de carga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Valor predeterminado para la velocidad de carga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "Ancho de banda de descarga (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Velocidad de descarga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Activar función de límite de velocidad" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Activar prioridad de tráfico" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "Activar esta característica" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Nombre del host" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "Dirección IP" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "Dirección IP (v4/v6)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "Dirección IP (sólo v4)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "Activar límite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Tipo de límite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (opcional)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "Configuración de NFT-QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" +"Interfaz de red para configuración de tráfico, por ejemplo, br-lan, eth0.1, " +"eth0, etc." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "Red a aplicar, por ejemplo. 192.168.1.0/24, 10.2.0.0/16, etc." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "Red a aplicar, por ejemplo. AAAA::BBBB/64, CCCC::1/128, etc." + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "No hay información disponible" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Paquetes totales" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Prioridad" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protocolo" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "Qos sobre Nftables" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "Velocidad" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Velocidad de descarga en tiempo real" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "Velocidad en tiempo real" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Velocidad de carga en tiempo real" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Servicio" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "Velocidad de descarga de QoS estática" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "Velocidad de carga de QoS estática" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "Red de destino (IPv4 / MASK)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "Red de destino 6 (IPv6/MÁSCARA)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" +"Esta página ofrece una vista general sobre la velocidad de descarga/carga " +"actual." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "Ajustes de prioridad de tráfico" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "Tipo de límite de velocidad" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Unidad" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "Ancho de banda de carga (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "Velocidad de carga" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "Lista blanca para el límite de velocidad" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "p.ej. https, 23, (el separador es una coma)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/fr/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/fr/nft-qos.po new file mode 100644 index 0000000..391c427 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/fr/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-10-24 08:56+0000\n" +"Last-Translator: ButterflyOfFire \n" +"Language-Team: French \n" +"Language: fr\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.1\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Total octets" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Récupération des données…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Commentaire" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Nom d'hôte" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "Adresse IP" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Information indisponible" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protocole" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Service" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/he/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/he/nft-qos.po new file mode 100644 index 0000000..b182668 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/he/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-10-17 15:26+0000\n" +"Last-Translator: Yaron Shahrabani \n" +"Language-Team: Hebrew \n" +"Language: he\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && " +"n % 10 == 0) ? 2 : 3));\n" +"X-Generator: Weblate 4.3.1-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "נאספים נתונים…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/hi/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/hi/nft-qos.po new file mode 100644 index 0000000..29961a2 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/hi/nft-qos.po @@ -0,0 +1,233 @@ +msgid "" +msgstr "" +"Language: hi\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/hu/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/hu/nft-qos.po new file mode 100644 index 0000000..1027fc6 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/hu/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-01-08 19:28+0000\n" +"Last-Translator: Balázs Úr \n" +"Language-Team: Hungarian \n" +"Language: hu\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10.1-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Bájt összesen" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Adatok összegyűjtése…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Megjegyzés" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Alapértelmezett letöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Alapértelmezett letöltési mértékegység" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Alapértelmezett hálózati csatoló" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Alapértelmezett feltöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Alapértelmezett feltöltési mértékegység" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "Alapértelmezett mértékegység a letöltési aránynál" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Alapértelmezett mértékegység a feltöltési aránynál" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "Alapértelmezett érték a letöltési sávszélességnél" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "Alapértelmezett érték a letöltési aránynál" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Alapértelmezett érték a feltöltési sávszélességnél" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Alapértelmezett érték a feltöltési aránynál" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "Letöltési sávszélesség (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Letöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Arány korlátozása funkció engedélyezése" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Forgalomprioritás engedélyezése" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "A funkció engedélyezése" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Gépnév" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP-cím" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "Korlátozás engedélyezése" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Korlát típusa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (elhagyható)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "NFT-QoS beállítások" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Nincs elérhető információ" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Csomagok összesen" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Prioritás" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokoll" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "Arány" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Valós idejű letöltési arány" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "Valós idejű arány" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Valós idejű feltöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Szolgáltatás" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "Statikus QoS-letöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "Statikus QoS feltöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "Célhálózat (IPv4/MASZK)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "Célhálózat 6 (IPv6/MASZK)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" +"Ez az oldal áttekintést ad a jelenlegi letöltési és feltöltési arányról." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "Forgalomprioritás beállításai" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "Arány korlátozásának típusa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Mértékegység" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "Feltöltési sávszélesség (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "Feltöltési arány" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "Fehérlista az arány korlátázásához" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "például https, 23, (vesszővel elválasztva)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/it/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/it/nft-qos.po new file mode 100644 index 0000000..0635c24 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/it/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-03-04 04:29+0000\n" +"Last-Translator: TuxAlex0 \n" +"Language-Team: Italian \n" +"Language: it\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.0-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Raccolta dati..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Commento" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Hostname" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Nessuna informazione disponibile" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protocollo" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/ja/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/ja/nft-qos.po new file mode 100644 index 0000000..186ecb0 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/ja/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-10-10 13:26+0000\n" +"Last-Translator: RyotaGamer <21ryotagamer@gmail.com>\n" +"Language-Team: Japanese \n" +"Language: ja\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.3-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "データを収集中..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "コメント" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "ホスト名" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP アドレス" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "NFT-QoS 設定" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "情報なし" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "プロトコル" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "サービス" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "アップロード帯域幅 (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/ko/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/ko/nft-qos.po new file mode 100644 index 0000000..5a3f704 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/ko/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-07-28 17:55+0000\n" +"Last-Translator: TheNoFace \n" +"Language-Team: Korean \n" +"Language: ko\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.2-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "데이터 수집 중..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/mr/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/mr/nft-qos.po new file mode 100644 index 0000000..86c0604 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/mr/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-02-07 09:18+0000\n" +"Last-Translator: Prachi Joshi \n" +"Language-Team: Marathi \n" +"Language: mr\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.11-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "डेटा संकलित करीत आहे ..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "टिप्पणी" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "होस्टनाव" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "प्रोटोकॉल" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "युनिट" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/ms/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/ms/nft-qos.po new file mode 100644 index 0000000..08bfab1 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/ms/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2019-12-16 23:25+0000\n" +"Last-Translator: Pusak Hitam \n" +"Language-Team: Malay \n" +"Language: ms\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.10-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Mengumpul data..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/nb_NO/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/nb_NO/nft-qos.po new file mode 100644 index 0000000..5ecf971 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/nb_NO/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2019-10-30 03:21+0000\n" +"Last-Translator: Allan Nordhøy \n" +"Language-Team: Norwegian Bokmål \n" +"Language: nb_NO\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.9.1\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Samler inn data…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/pl/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/pl/nft-qos.po new file mode 100644 index 0000000..7342882 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/pl/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-09-19 18:03+0000\n" +"Last-Translator: Marcin Net \n" +"Language-Team: Polish \n" +"Language: pl\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.3-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Bajty ogółem" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Trwa zbieranie danych..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Komentarz" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Domyślna szybkość pobierania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Domyślna jednostka pobierania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Domyślny interfejs sieciowy" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Domyślna szybkość przesyłania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Domyślna jednostka przesyłania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "Domyślna jednostka dla szybkości pobierania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Domyślna jednostka szybkości wysyłania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "Wartość domyślna dla przepustowości pobierania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "Wartość domyślna dla szybkości pobierania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Wartość domyślna dla przepustowości wysyłania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Wartość domyślna szybkości wysyłania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "Przepustowość pobierania (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Szybkość pobierania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Włącz funkcję limitu prędkości" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Włącz priorytet ruchu" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "Włącz tę funkcję" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Nazwa hosta" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "Adres IP" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "Włącz limit" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Typ limitu" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (opcjonalnie)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "Ustawienia NFT-QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Brak dostępnych informacji" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Suma pakietów" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Priorytet" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokół" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "Tempo" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Szybkość pobierania w czasie rzeczywistym" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "Szybkość w czasie rzeczywistym" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Szybkość wysyłania w czasie rzeczywistym" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Usługa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "Statyczna prędkość pobierania QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "Statyczna prędkość wysyłania QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "Sieć docelowa (IPv4/Maska)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "Sieć docelowa (IPv6/Maska)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "Ta strona zawiera przegląd aktualnej prędkości pobierania/wysyłania." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "Ustawienia priorytetu ruchu sieciowego" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "Typ limitu prędkości" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Jednostka" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "Przepustowość przesyłania (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "Szybkość wysyłania" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "Biała lista dla limitu prędkości" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "np. https, 23, (separator to przecinek)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/pt/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/pt/nft-qos.po new file mode 100644 index 0000000..8c6b36e --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/pt/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-09-18 18:36+0000\n" +"Last-Translator: ssantos \n" +"Language-Team: Portuguese \n" +"Language: pt\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Total de Bytes" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "A recolher dados..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Comentário" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Taxa de Descarregamento Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Unidade de Descarregamento Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Interface de Rede Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Taxa de Envio Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Unidade de Envio Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "Unidade padrão para taxa de descarregamento" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Unidade padrão para taxa de envio" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "Valor padrão para largura de banda de descarregamento" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "Valor padrão para taxa de descarregamento" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Valor padrão para a largura de banda de envio" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Valor padrão para a taxa de envio" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "Largura de Banda de Descarregamento (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Taxa de Descarregamento" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Ativar Recurso de Limite de Taxa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Ativar Prioridade de Tráfego" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "Ativar este recurso" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Nome do Host" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "Endereço IP" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "Limitar Ativação" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Tipo de Limite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (opcional)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "Configurações NFT-QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Sem informação disponível" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Total de Pacotes" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Prioridade" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protocolo" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "Taxa" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Taxa de Descarregamento em Tempo Real" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "Taxa em Tempo Real" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Taxa de Envio em Tempo Real" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Serviço" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "Taxa Estática de Descarregamanto de QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "Taxa Estática de Envio QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "Rede de Destino (IPv4/MASK)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "Rede6 de Destino (IPv6/MASK)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" +"Esta página dá uma visão geral sobre a taxa de descarregamento/envio atual." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "Configurações de Prioridade de Tráfego" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "Tipo de Taxa Limite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Unidade" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "Largura de Banda de Envio (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "Taxa de Envio" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "Lista Branca para a Taxa Limite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "por exemplo https, 23, (o separador é vírgula)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/pt_BR/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/pt_BR/nft-qos.po new file mode 100644 index 0000000..40f436d --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/pt_BR/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-09-17 16:34+0000\n" +"Last-Translator: Wellington Terumi Uemura \n" +"Language-Team: Portuguese (Brazil) \n" +"Language: pt_BR\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Total de Bytes" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Coletando dados..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Comentário" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Taxa de Download Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Unidade de Download Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Interface de Rede Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Taxa de Upload Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Unidade de Upload Padrão" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "Unidade padrão para taxa de download" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Unidade padrão para taxa de upload" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "Valor padrão para a largura de banda para download" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "Valor padrão para a taxa de download" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Valor padrão para a largura de banda de upload" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Valor padrão para a taxa de upload" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "Largura de Banda de Download (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Taxa de Download" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Ativar o Recurso de Limitação de Taxa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Ativar a Prioridade de Tráfego" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "Ativar este recurso" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Nome do equipamento" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "Endereço IP" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "Ativar Limite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Tipo de Limite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (opcional)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "Configurações NFT-QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Nenhuma informação disponível" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Total de Pacotes" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Prioridade" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protocolo" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "Taxa" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Taxa de Download em Tempo Real" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "Taxa em Tempo Real" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Taxa de Upload em Tempo Real" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Serviço" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "QoS estático - Taxa de download" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "QoS-Estático - Taxa de Upload" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "Rede de Destino (IPv4/MASK)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "Rede de Destino (IPV6/MASK)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "Esta página dá uma visão geral sobre a taxa atual de download/upload." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "Configuração da Prioridade do Tráfego" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "Tipo de Taxa Limite" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "Unidade" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "Largura de Banda de Upload (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "Taxa de Upload" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "Lista Branca para a Limitação da Taxa" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "por exemplo, https, 23, (separado por vírgulas)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/ro/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/ro/nft-qos.po new file mode 100644 index 0000000..bc97a06 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/ro/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-03-29 21:22+0000\n" +"Last-Translator: Cristian Ionescu \n" +"Language-Team: Romanian \n" +"Language: ro\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " +"20)) ? 1 : 2;\n" +"X-Generator: Weblate 4.0-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Colectare date..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Numele gazdei ( hostname )" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/ru/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/ru/nft-qos.po new file mode 100644 index 0000000..638701b --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/ru/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-10-09 00:10+0000\n" +"Last-Translator: Artem \n" +"Language-Team: Russian \n" +"Language: ru\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" +"X-Generator: Weblate 4.3-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Всего байт" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Сбор данных..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Комментарий" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Скорость загрузки по умолчанию" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Единица загрузки по умолчанию" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Сетевой интерфейс по умолчанию" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Скорость отправки по умолчанию" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "Скорость загрузки" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "Включить функцию ограничения скорости" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "Включить приоритет трафика" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "Включить эту функцию" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Имя хоста" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP адрес" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "Тип лимита" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "MAC (необязательно)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "МБ" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "Настройки NFT-QoS" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Нет доступной информации" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "Всего пакетов" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "Приоритет" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Протокол" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "Скорость загрузки в реальном времени" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "Скорость отправки в реальном времени" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "Служба" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "узел" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/sk/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/sk/nft-qos.po new file mode 100644 index 0000000..7c4afad --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/sk/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-04-04 17:35+0000\n" +"Last-Translator: Dušan Kazik \n" +"Language-Team: Slovak \n" +"Language: sk\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"X-Generator: Weblate 4.0-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Zbieram dáta..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Komentár" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Názov hostiteľa" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Nie sú dostupné žiadne informácie" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokol" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/sv/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/sv/nft-qos.po new file mode 100644 index 0000000..da1b53a --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/sv/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-11-22 15:35+0000\n" +"Last-Translator: PontusÖsterlindh \n" +"Language-Team: Swedish \n" +"Language: sv\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.4-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Bytes Totalt" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Samlar in data..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Kommentera" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Värdnamn" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP-adress" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Ingen information tillgänglig" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokoll" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/templates/nft-qos.pot b/rooter/0optionalapps/luci-app-nft-qos/po/templates/nft-qos.pot new file mode 100644 index 0000000..8fecfa0 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/templates/nft-qos.pot @@ -0,0 +1,230 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/tr/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/tr/nft-qos.po new file mode 100644 index 0000000..fd53746 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/tr/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-11-28 20:18+0000\n" +"Last-Translator: Oğuz Ersen \n" +"Language-Team: Turkish \n" +"Language: tr\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.4-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "Bayt Toplamı" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Veri alınıyor..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Açıklama" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "Varsayılan İndirme Hızı" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "Varsayılan İndirme Birimi" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "Varsayılan Ağ Arayüzü" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "Varsayılan Yükleme Hızı" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "Varsayılan Yükleme Birimi" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "İndirme hızı için varsayılan birim" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "Yükleme hızı için varsayılan birim" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "İndirme bant genişliği için varsayılan değer" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "İndirme hızı için varsayılan değer" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "Yükleme band genişliği için varsayılan değer" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "Yükleme hızı için varsayılan değer" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "İndirme Band Genişliği (Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "İndirme Hızı" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Sunucu adı" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Bilgi bulunmamaktadır" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Protokol" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/uk/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/uk/nft-qos.po new file mode 100644 index 0000000..748da14 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/uk/nft-qos.po @@ -0,0 +1,240 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2020-02-17 11:51+0000\n" +"Last-Translator: Olexandr Nesterenko \n" +"Language-Team: Ukrainian \n" +"Language: uk\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" +"X-Generator: Weblate 3.11-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Збирання даних..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Примітка" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "Назва (ім'я) вузла" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP-адреса" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "Інформація відсутня" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Протокол" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/vi/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/vi/nft-qos.po new file mode 100644 index 0000000..dcbba21 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/vi/nft-qos.po @@ -0,0 +1,239 @@ +msgid "" +msgstr "" +"PO-Revision-Date: 2019-11-13 13:07+0000\n" +"Last-Translator: Le Van Uoc \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.10-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "Đang lấy dữ liệu..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "Bình luận" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "Giao thức" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/zh_Hans/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/zh_Hans/nft-qos.po new file mode 100644 index 0000000..02a59da --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/zh_Hans/nft-qos.po @@ -0,0 +1,245 @@ +# +# Yangfl , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2020-11-22 15:35+0000\n" +"Last-Translator: Eric \n" +"Language-Team: Chinese (Simplified) \n" +"Language: zh_Hans\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.4-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "字节总数" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "正在收集数据…" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "注解" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "默认下载速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "默认下载速率单位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "默认网络接口" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "默认上传速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "默认上传速率单位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "默认的下载速率单位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "默认的上传速率单位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "下载带宽的默认值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "下载速率的默认值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "上传带宽的默认值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "上传速率的默认值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "下载带宽(Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "下载速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "开启速率限制功能" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "开启流量优先级" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "开启这个功能" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "主机名" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP 地址" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "IP 地址(V4 / V6)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "IP 地址(仅 V4)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "限速开启" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "限速类型" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "物理地址(可选)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "NFT-QoS 设置" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "流量整形的目标网络接口,例如br-lan、eth0.1、eth0等" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "将要应用规则的网络,例如192.168.1.0/24、10.2.0.0/16等" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "将要应用规则的网络,例如AAAA::BBBB/64、CCCC::1/128等" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "无可用信息" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "数据包总数" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "优先级" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "协议" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "QoS Nftables 版" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "速率" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "实时下载速率" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "实时速率显示" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "实时上传速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "服务" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "静态 QoS-下载速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "静态 QoS-上传速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "目标网络(IPv4 地址/掩码)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "目标网络 v6(IPv6 地址/掩码)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "该页面提供了当前上传和下载速率的一个总览。" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "流量优先级设置" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "限速的类型" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "单元" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "上传带宽(Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "上传速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "限速白名单" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "例如https, 23(用逗号分隔)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/po/zh_Hant/nft-qos.po b/rooter/0optionalapps/luci-app-nft-qos/po/zh_Hant/nft-qos.po new file mode 100644 index 0000000..e2fa5f4 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/po/zh_Hant/nft-qos.po @@ -0,0 +1,245 @@ +# +# Yangfl , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: 2020-06-30 13:41+0000\n" +"Last-Translator: Hulen \n" +"Language-Team: Chinese (Traditional) \n" +"Language: zh_Hant\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.2-dev\n" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:136 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:155 +msgid "Bytes Total" +msgstr "位元組總數" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:141 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:160 +msgid "Collecting data..." +msgstr "收集資料中..." + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:224 +msgid "Comment" +msgstr "註解" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default Download Rate" +msgstr "預設下載速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default Download Unit" +msgstr "預設下載速率單位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Default Network Interface" +msgstr "預設網路介面" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default Upload Rate" +msgstr "預設上傳速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default Upload Unit" +msgstr "預設上傳速率單位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:53 +msgid "Default unit for download rate" +msgstr "預設的下載速率單位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:65 +msgid "Default unit for upload rate" +msgstr "預設的上傳速率單位" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Default value for download bandwidth" +msgstr "下載頻寬的預設值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:48 +msgid "Default value for download rate" +msgstr "下載速率的預設值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Default value for upload bandwidth" +msgstr "上傳頻寬的預設值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:60 +msgid "Default value for upload rate" +msgstr "上傳速率的預設值" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:75 +msgid "Download Bandwidth (Mbps)" +msgstr "下載頻寬(Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:135 +msgid "Download Rate" +msgstr "下載速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Enable Limit Rate Feature" +msgstr "開啟速率限制功能" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable Traffic Priority" +msgstr "開啟流量優先順序" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:103 +msgid "Enable this feature" +msgstr "開啟這個功能" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:121 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:158 +msgid "Hostname" +msgstr "主機名稱" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:134 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:153 +msgid "IP Address" +msgstr "IP 位址" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:126 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:163 +msgid "IP Address(V4 / V6)" +msgstr "IP 位址(V4 / V6)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:128 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:165 +msgid "IP Address(V4 Only)" +msgstr "IP 位址(僅 V4)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:38 +msgid "Limit Enable" +msgstr "限速開啟" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Limit Type" +msgstr "限速型別" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:135 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:172 +msgid "MAC (optional)" +msgstr "實體位址(可選)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:48 +msgid "MB" +msgstr "MB" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:28 +msgid "NFT-QoS Settings" +msgstr "NFT-QoS 設定" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:107 +msgid "Network Interface for Traffic Shaping, e.g. br-lan, eth0.1, eth0, etc" +msgstr "流量整形的目標網路介面,例如br-lan、eth0.1、eth0等" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Network to be apply, e.g. 192.168.1.0/24, 10.2.0.0/16, etc" +msgstr "將要應用規則的網路,例如192.168.1.0/24、10.2.0.0/16等" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Network to be apply, e.g. AAAA::BBBB/64, CCCC::1/128, etc" +msgstr "將要應用規則的網路,例如AAAA::BBBB/64、CCCC::1/128等" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:65 +msgid "No information available" +msgstr "無可用資訊" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:137 +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:156 +msgid "Packets Total" +msgstr "資料包總數" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:207 +msgid "Priority" +msgstr "優先順序" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:199 +msgid "Protocol" +msgstr "協定" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:16 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:23 +msgid "Qos over Nftables" +msgstr "QoS Nftables 版" + +#: applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua:12 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:139 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:176 +msgid "Rate" +msgstr "速率" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:130 +msgid "Realtime Download Rate" +msgstr "實時下載速率" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:125 +msgid "Realtime Rate" +msgstr "實時速率顯示" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:149 +msgid "Realtime Upload Rate" +msgstr "實時上傳速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "Service" +msgstr "服務" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:116 +msgid "Static QoS-Download Rate" +msgstr "靜態 QoS-下載速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:153 +msgid "Static QoS-Upload Rate" +msgstr "靜態 QoS-上傳速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:85 +msgid "Target Network (IPv4/MASK)" +msgstr "目標網路(IPv4 位址/掩碼)" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:91 +msgid "Target Network6 (IPv6/MASK)" +msgstr "目標網路 v6(IPv6 位址/掩碼)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:127 +msgid "This page gives an overview over currently download/upload rate." +msgstr "該頁面提供了當前上傳和下載速率的一個總覽。" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:194 +msgid "Traffic Priority Settings" +msgstr "流量優先順序設定" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:42 +msgid "Type of Limit Rate" +msgstr "限速的型別" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:144 +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:181 +msgid "Unit" +msgstr "單元" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:80 +msgid "Upload Bandwidth (Mbps)" +msgstr "上傳頻寬(Mbps)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:154 +msgid "Upload Rate" +msgstr "上傳速率" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:96 +msgid "White List for Limit Rate" +msgstr "限速白名單" + +#: applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua:221 +msgid "e.g. https, 23, (separator is comma)" +msgstr "例如https, 23(用逗號分隔)" + +#: applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm:44 +msgid "kB" +msgstr "kB" diff --git a/rooter/0optionalapps/luci-app-nft-qos/root/usr/share/rpcd/acl.d/luci-app-nft-qos.json b/rooter/0optionalapps/luci-app-nft-qos/root/usr/share/rpcd/acl.d/luci-app-nft-qos.json new file mode 100644 index 0000000..b2de626 --- /dev/null +++ b/rooter/0optionalapps/luci-app-nft-qos/root/usr/share/rpcd/acl.d/luci-app-nft-qos.json @@ -0,0 +1,11 @@ +{ + "luci-app-nft-qos": { + "description": "Grant UCI access for luci-app-nft-qos", + "read": { + "uci": [ "nft-qos" ] + }, + "write": { + "uci": [ "nft-qos" ] + } + } +} diff --git a/rooter/0optionalapps/luci-app-rooterddns/Makefile b/rooter/0optionalapps/luci-app-rooterddns/Makefile new file mode 100644 index 0000000..4ed1d3b --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/Makefile @@ -0,0 +1,34 @@ +#Owned by DairyMan@Whirlpool +# +#Copyright GNU act. +include $(TOPDIR)/rules.mk + +PKG_NAME:=luci-app-rooterddns +PKG_VERSION:=1.000 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Created by DM/makefile by Cobia@whirlpool +include $(INCLUDE_DIR)/package.mk + +define Package/luci-app-rooterddns + SECTION:=luci + CATEGORY:=LuCI + DEPENDS:=+ddns-scripts +ddns-scripts_no-ip_com + SUBMENU:=3. Applications + TITLE:=LuCI Support for Dynamic DNS Client + PKGARCH:=all +endef + +define Package/luci-app-rooterddns/description + LuCI Support for Dynamic DNS Client +endef + + +define Build/Compile +endef + +define Package/luci-app-rooterddns/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,luci-app-rooterddns)) diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/etc/uci-defaults/40_luci-ddns b/rooter/0optionalapps/luci-app-rooterddns/files/etc/uci-defaults/40_luci-ddns new file mode 100644 index 0000000..a82c1f9 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/etc/uci-defaults/40_luci-ddns @@ -0,0 +1,10 @@ +#!/bin/sh + +# no longer needed for "Save and Apply" to restart ddns +uci -q batch <<-EOF >/dev/null + delete ucitrack.@ddns[-1] + commit ucitrack +EOF + +rm -f /tmp/luci-indexcache +return 0 diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/controller/ddns.lua b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/controller/ddns.lua new file mode 100644 index 0000000..89da567 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/controller/ddns.lua @@ -0,0 +1,308 @@ +-- Copyright 2008 Steven Barth +-- Copyright 2008 Jo-Philipp Wich +-- Copyright 2013 Manuel Munz +-- Copyright 2014-2016 Christian Schoenebeck +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.ddns", package.seeall) + +local NX = require "nixio" +local NXFS = require "nixio.fs" +local DISP = require "luci.dispatcher" +local HTTP = require "luci.http" +local I18N = require "luci.i18n" -- not globally avalible here +local IPKG = require "luci.model.ipkg" +local SYS = require "luci.sys" +local UCI = require "luci.model.uci" +local UTIL = require "luci.util" +local DDNS = require "luci.tools.ddns" -- ddns multiused functions + +luci_helper = "/usr/lib/ddns/dynamic_dns_lucihelper.sh" + +local srv_name = "ddns-scripts" +local srv_ver_min = "2.7.6" -- minimum version of service required +local srv_ver_cmd = luci_helper .. [[ -V | awk {'print $2'}]] +local app_name = "luci-app-ddns" +local app_title = "Dynamic DNS" +local app_version = "2.4.8-1" + +function index() + local nxfs = require "nixio.fs" -- global definitions not available + local sys = require "luci.sys" -- in function index() + local ddns = require "luci.tools.ddns" -- ddns multiused functions + local muci = require "luci.model.uci" + + -- no config create an empty one + if not nxfs.access("/etc/config/ddns") then + nxfs.writefile("/etc/config/ddns", "") + end + + -- preset new option "lookup_host" if not already defined + local uci = muci.cursor() + local commit = false + uci:foreach("ddns", "service", function (s) + if not s["lookup_host"] and s["domain"] then + uci:set("ddns", s[".name"], "lookup_host", s["domain"]) + commit = true + end + end) + if commit then uci:commit("ddns") end + uci:unload("ddns") + + entry( {"admin", "services", "ddns"}, cbi("ddns/overview"), _("Dynamic DNS"), 59) + entry( {"admin", "services", "ddns", "detail"}, cbi("ddns/detail"), nil ).leaf = true + entry( {"admin", "services", "ddns", "hints"}, cbi("ddns/hints", + {hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}), nil ).leaf = true + entry( {"admin", "services", "ddns", "global"}, cbi("ddns/global"), nil ).leaf = true + entry( {"admin", "services", "ddns", "logview"}, call("logread") ).leaf = true + entry( {"admin", "services", "ddns", "startstop"}, post("startstop") ).leaf = true + entry( {"admin", "services", "ddns", "status"}, call("status") ).leaf = true +end + +-- Application specific information functions +function app_description() + return I18N.translate("Dynamic DNS allows your router to be reached with " .. + "a fixed hostname while having a dynamically changing IP address.") +end +function app_title_back() + return [[]] + .. I18N.translate(app_title) + .. [[]] +end + +-- Standardized application/service functions +function app_title_main() + return [[]] + .. I18N.translate(app_title) + .. [[]] +end +function service_version() + local ver = nil + + ver = UTIL.exec(srv_ver_cmd) + if #ver > 0 then return ver end + + IPKG.list_installed(srv_name, function(n, v, d) + if v and (#v > 0) then ver = v end + end + ) + return ver +end +function service_ok() + return IPKG.compare_versions((service_version() or "0"), ">=", srv_ver_min) +end + +-- internal function to read all sections status and return data array +local function _get_status() + local uci = UCI.cursor() + local service = SYS.init.enabled("ddns") and 1 or 0 + local url_start = DISP.build_url("admin", "system", "startup") + local data = {} -- Array to transfer data to javascript + + data[#data+1] = { + enabled = service, -- service enabled + url_up = url_start, -- link to enable DDS (System-Startup) + } + + uci:foreach("ddns", "service", function (s) + + -- Get section we are looking at + -- and enabled state + local section = s[".name"] + local enabled = tonumber(s["enabled"]) or 0 + local datelast = "_empty_" -- formatted date of last update + local datenext = "_empty_" -- formatted date of next update + + -- get force seconds + local force_seconds = DDNS.calc_seconds( + tonumber(s["force_interval"]) or 72 , + s["force_unit"] or "hours" ) + -- get/validate pid and last update + local pid = DDNS.get_pid(section) + local uptime = SYS.uptime() + local lasttime = DDNS.get_lastupd(section) + if lasttime > uptime then -- /var might not be linked to /tmp + lasttime = 0 -- and/or not cleared on reboot + end + + -- no last update happen + if lasttime == 0 then + datelast = "_never_" + + -- we read last update + else + -- calc last update + -- sys.epoch - sys uptime + lastupdate(uptime) + local epoch = os.time() - uptime + lasttime + -- use linux date to convert epoch + datelast = DDNS.epoch2date(epoch) + -- calc and fill next update + datenext = DDNS.epoch2date(epoch + force_seconds) + end + + -- process running but update needs to happen + -- problems if force_seconds > uptime + force_seconds = (force_seconds > uptime) and uptime or force_seconds + if pid > 0 and ( lasttime + force_seconds - uptime ) <= 0 then + datenext = "_verify_" + + -- run once + elseif force_seconds == 0 then + datenext = "_runonce_" + + -- no process running and NOT enabled + elseif pid == 0 and enabled == 0 then + datenext = "_disabled_" + + -- no process running and enabled + elseif pid == 0 and enabled ~= 0 then + datenext = "_stopped_" + end + + -- get/set monitored interface and IP version + local iface = s["interface"] or "_nonet_" + local use_ipv6 = tonumber(s["use_ipv6"]) or 0 + if iface ~= "_nonet_" then + local ipv = (use_ipv6 == 1) and "IPv6" or "IPv4" + iface = ipv .. " / " .. iface + end + + -- try to get registered IP + local lookup_host = s["lookup_host"] or "_nolookup_" + local dnsserver = s["dns_server"] or "" + local force_ipversion = tonumber(s["force_ipversion"] or 0) + local force_dnstcp = tonumber(s["force_dnstcp"] or 0) + local is_glue = tonumber(s["is_glue"] or 0) + local command = luci_helper .. [[ -]] + if (use_ipv6 == 1) then command = command .. [[6]] end + if (force_ipversion == 1) then command = command .. [[f]] end + if (force_dnstcp == 1) then command = command .. [[t]] end + if (is_glue == 1) then command = command .. [[g]] end + command = command .. [[l ]] .. lookup_host + if (#dnsserver > 0) then command = command .. [[ -d ]] .. dnsserver end + command = command .. [[ -- get_registered_ip]] + local reg_ip = SYS.exec(command) + if reg_ip == "" then + reg_ip = "_nodata_" + end + + -- fill transfer array + data[#data+1] = { + section = section, + enabled = enabled, + iface = iface, + lookup = lookup_host, + reg_ip = reg_ip, + pid = pid, + datelast = datelast, + datenext = datenext + } + end) + + uci:unload("ddns") + return data +end + +-- called by XHR.get from detail_logview.htm +function logread(section) + -- read application settings + local uci = UCI.cursor() + local ldir = uci:get("ddns", "global", "ddns_logdir") or "/var/log/ddns" + local lfile = ldir .. "/" .. section .. ".log" + local ldata = NXFS.readfile(lfile) + + if not ldata or #ldata == 0 then + ldata="_nodata_" + end + uci:unload("ddns") + HTTP.write(ldata) +end + +-- called by XHR.get from overview_status.htm +function startstop(section, enabled) + local uci = UCI.cursor() + local pid = DDNS.get_pid(section) + local data = {} -- Array to transfer data to javascript + + -- if process running we want to stop and return + if pid > 0 then + local tmp = NX.kill(pid, 15) -- terminate + NX.nanosleep(2) -- 2 second "show time" + -- status changed so return full status + data = _get_status() + HTTP.prepare_content("application/json") + HTTP.write_json(data) + return + end + + -- read uncommitted changes + -- we don't save and commit data from other section or other options + -- only enabled will be done + local exec = true + local changed = uci:changes("ddns") + for k_config, v_section in pairs(changed) do + -- security check because uci.changes only gets our config + if k_config ~= "ddns" then + exec = false + break + end + for k_section, v_option in pairs(v_section) do + -- check if only section of button was changed + if k_section ~= section then + exec = false + break + end + for k_option, v_value in pairs(v_option) do + -- check if only enabled was changed + if k_option ~= "enabled" then + exec = false + break + end + end + end + end + + -- we can not execute because other + -- uncommitted changes pending, so exit here + if not exec then + HTTP.write("_uncommitted_") + return + end + + -- save enable state + uci:set("ddns", section, "enabled", ( (enabled == "true") and "1" or "0") ) + uci:save("ddns") + uci:commit("ddns") + uci:unload("ddns") + + -- start ddns-updater for section + local command = luci_helper .. [[ -S ]] .. section .. [[ -- start]] + os.execute(command) + NX.nanosleep(3) -- 3 seconds "show time" + + -- status changed so return full status + data = _get_status() + HTTP.prepare_content("application/json") + HTTP.write_json(data) +end + +-- called by XHR.poll from overview_status.htm +function status() + local data = _get_status() + HTTP.prepare_content("application/json") + HTTP.write_json(data) +end + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/detail.lua b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/detail.lua new file mode 100644 index 0000000..d283c54 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/detail.lua @@ -0,0 +1,1479 @@ +-- Copyright 2008 Steven Barth +-- Copyright 2008 Jo-Philipp Wich +-- Copyright 2013 Manuel Munz +-- Copyright 2014-2016 Christian Schoenebeck +-- Licensed to the public under the Apache License 2.0. + +local NX = require "nixio" +local NXFS = require "nixio.fs" +local SYS = require "luci.sys" +local UTIL = require "luci.util" +local HTTP = require "luci.http" +local DISP = require "luci.dispatcher" +local WADM = require "luci.tools.webadmin" +local DTYP = require "luci.cbi.datatypes" +local CTRL = require "luci.controller.ddns" -- this application's controller +local DDNS = require "luci.tools.ddns" -- ddns multiused functions + +-- takeover arguments -- ####################################################### +local section = arg[1] + +-- html constants -- ########################################################### +local font_red = "" +local font_off = "" +local bold_on = "" +local bold_off = "" + +-- error text constants -- ##################################################### +local err_ipv6_plain = translate("IPv6 not supported") .. " - " .. + translate("please select 'IPv4' address version") +local err_ipv6_basic = bold_on .. + font_red .. + translate("IPv6 not supported") .. + font_off .. + "
      " .. translate("please select 'IPv4' address version") .. + bold_off +local err_ipv6_other = bold_on .. + font_red .. + translate("IPv6 not supported") .. + font_off .. + "
      " .. translate("please select 'IPv4' address version in") .. " " .. + [[]] .. + translate("Basic Settings") .. + [[]] .. + bold_off + +function err_tab_basic(self) + return translate("Basic Settings") .. " - " .. self.title .. ": " +end +function err_tab_adv(self) + return translate("Advanced Settings") .. " - " .. self.title .. ": " +end +function err_tab_timer(self) + return translate("Timer Settings") .. " - " .. self.title .. ": " +end + +-- read services/services_ipv6 files -- ######################################## +local services4 = { } -- IPv4 -- +local fd4 = io.open("/etc/ddns/services", "r") +if fd4 then + local ln, s, t + repeat + ln = fd4:read("*l") + s = ln and ln:match('^%s*".*') -- only handle lines beginning with " + s = s and s:gsub('"','') -- remove " + t = s and UTIL.split(s,"(%s+)",nil,true) -- split on whitespaces + if t then services4[t[1]]=t[2] end + until not ln + fd4:close() +end + +local services6 = { } -- IPv6 -- +local fd6 = io.open("/etc/ddns/services_ipv6", "r") +if fd6 then + local ln, s, t + repeat + ln = fd6:read("*l") + s = ln and ln:match('^%s*".*') -- only handle lines beginning with " + s = s and s:gsub('"','') -- remove " + t = s and UTIL.split(s,"(%s+)",nil,true) -- split on whitespaces + if t then services6[t[1]]=t[2] end + until not ln + fd6:close() +end + +-- multi-used functions -- #################################################### +-- function to verify settings around ip_source +-- will use dynamic_dns_lucihelper to check if +-- local IP can be read +local function _verify_ip_source() + -- section is globally defined here be calling agrument (see above) + local _arg + + local _ipv6 = usev6:formvalue(section) + local _source = (_ipv6 == "1") + and src6:formvalue(section) + or src4:formvalue(section) + + local command = CTRL.luci_helper .. [[ -]] + if (_ipv6 == "1") then command = command .. [[6]] end + + if _source == "network" then + _arg = (_ipv6 == "1") + and ipn6:formvalue(section) + or ipn4:formvalue(section) + command = command .. [[n ]] .. _arg + elseif _source == "web" then + _arg = (_ipv6 == "1") + and iurl6:formvalue(section) + or iurl4:formvalue(section) + command = command .. [[u ]] .. _arg + + -- proxy only needed for checking url + _arg = (pxy) and pxy:formvalue(section) or "" + if (_arg and #_arg > 0) then + command = command .. [[ -p ]] .. _arg + end + elseif _source == "interface" then + command = command .. [[i ]] .. ipi:formvalue(section) + elseif _source == "script" then + command = command .. [[s ]] .. ips:formvalue(section) + end + command = command .. [[ -- get_local_ip]] + return (SYS.call(command) == 0) +end + +-- function to check if option is used inside url or script +-- return -1 on error, 0 NOT required, 1 required +local function _option_used(option, urlscript) + local surl -- search string for url + local ssh -- search string for script + local required -- option used inside url or script + + if option == "domain" then surl, ssh = '%[DOMAIN%]', '%$domain' + elseif option == "username" then surl, ssh = '%[USERNAME%]', '%$username' + elseif option == "password" then surl, ssh = '%[PASSWORD%]', '%$password' + elseif option == "param_enc" then surl, ssh = '%[PARAMENC%]', '%$param_enc' + elseif option == "param_opt" then surl, ssh = '%[PARAMOPT%]', '%$param_opt' + else + error("undefined option") + return -1 -- return on error + end + + local required = false + -- handle url + if urlscript:find('http') then + required = ( urlscript:find(surl) ) + -- handle script + else + if not urlscript:find("/") then + -- might be inside ddns-scripts directory + urlscript = "/usr/lib/ddns/" .. urlscript + end + -- problem with script exit here + if not NXFS.access(urlscript) then return -1 end + + local f = io.input(urlscript) + -- still problem with script exit here + if not f then return -1 end + for l in f:lines() do + repeat + if l:find('^#') then break end -- continue on comment lines + required = ( l:find(surl) or l:find(ssh) ) + until true + if required then break end + end + f:close() + end + return (required and 1 or 0) +end + +-- function to verify if option is valid +local function _option_validate(self, value) + -- section is globally defined here be calling agrument (see above) + local fusev6 = usev6:formvalue(section) or "0" + local fsvc4 = svc4:formvalue(section) or "-" + local fsvc6 = svc6:formvalue(section) or "-" + local urlsh, used + + -- IP-Version dependent custom service selected + if (fusev6 == "0" and fsvc4 == "-") or + (fusev6 == "1" and fsvc6 == "-") then + -- read custom url + urlsh = uurl:formvalue(section) or "" + -- no url then read custom script + if (#urlsh == 0) then + urlsh = ush:formvalue(section) or "" + end + -- IPv4 read from services4 table + elseif (fusev6 == "0") then + urlsh = services4[fsvc4] or "" + -- IPv6 read from services6 table + else + urlsh = services6[fsvc6] or "" + end + -- problem with url or script exit here + -- error handled somewhere else + if (#urlsh == 0) then return "" end + + used = _option_used(self.option, urlsh) + -- on error or not used return empty sting + if used < 1 then return "" end + -- needed but no data then return error + if not value or (#value == 0) then + return nil, err_tab_basic(self) .. translate("missing / required") + end + return value +end + +-- cbi-map definition -- ####################################################### +local m = Map("ddns") +m.title = CTRL.app_title_back() +m.description = CTRL.app_description() +m.redirect = DISP.build_url("admin", "services", "ddns") + +m.on_after_commit = function(self) + if self.changed then -- changes ? + local pid = DDNS.get_pid(section) + if pid > 0 then -- running ? + local tmp = NX.kill(pid, 1) -- send SIGHUP + end + end +end + +-- provider switch was requested, save and reload page +if m:formvalue("cbid.ddns.%s._switch" % section) then -- section == arg[1] + local fsvc + local fusev6 = m:formvalue("cbid.ddns.%s.use_ipv6" % section) or "0" + if fusev6 == "1" then + fsvc = m:formvalue("cbid.ddns.%s.ipv6_service_name" % section) or "" + else + fsvc = m:formvalue("cbid.ddns.%s.ipv4_service_name" % section) or "" + end + + if fusev6 ~= (m:get(section, "use_ipv6") or "0") then -- IPv6 was changed + m:set(section, "use_ipv6", fusev6) -- save it + end + + if fsvc ~= "-" then -- NOT "custom" + m:set(section, "service_name", fsvc) -- save it + else -- else + m:del(section, "service_name") -- delete it + end + m.uci:save(m.config) + + -- reload page + HTTP.redirect( DISP.build_url("admin", "services", "ddns", "detail", section) ) + return +end + +-- read application settings -- ################################################ +-- log directory +local logdir = m.uci:get(m.config, "global", "ddns_logdir") or "/var/log/ddns" + +-- cbi-section definition -- ################################################### +local ns = m:section( NamedSection, section, "service", + translate("Details for") .. ([[: %s]] % section), + translate("Configure here the details for selected Dynamic DNS service.") ) +ns.instance = section -- arg [1] +ns:tab("basic", translate("Basic Settings"), nil ) +ns:tab("advanced", translate("Advanced Settings"), nil ) +ns:tab("timer", translate("Timer Settings"), nil ) +ns:tab("logview", translate("Log File Viewer"), nil ) + +-- TAB: Basic ##################################################################################### +-- enabled -- ################################################################# +en = ns:taboption("basic", Flag, "enabled", + translate("Enabled"), + translate("Enable service") ) +en.orientation = "horizontal" + +-- IPv4/IPv6 - lookup_host -- ################################################# +luh = ns:taboption("basic", Value, "lookup_host", + translate("Lookup Hostname"), + translate("Hostname/FQDN to validate, if an IP update happens or is necessary") ) +luh.rmempty = false +luh.placeholder = "myhost.example.com" +function luh.validate(self, value) + if not value + or not (#value > 0) + or not DTYP.hostname(value) then + return nil, err_tab_basic(self) .. translate("invalid FQDN / required - Sample") .. ": 'myhost.example.com'" + else + return UTIL.trim(value) + end +end +function luh.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- use_ipv6 -- ################################################################ +usev6 = ns:taboption("basic", ListValue, "use_ipv6", + translate("IP address version"), + translate("Defines which IP address 'IPv4/IPv6' is send to the DDNS provider") ) +usev6.widget = "radio" +usev6.default = "0" +usev6:value("0", translate("IPv4-Address") ) +function usev6.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) or "0" + if DDNS.has_ipv6 or (value == "1" and not DDNS.has_ipv6) then + self:value("1", translate("IPv6-Address") ) + end + if value == "1" and not DDNS.has_ipv6 then + self.description = err_ipv6_basic + end + return value +end +function usev6.validate(self, value) + if (value == "1" and DDNS.has_ipv6) or value == "0" then + return value + end + return nil, err_tab_basic(self) .. err_ipv6_plain +end +function usev6.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4 - service_name -- ##################################################### +svc4 = ns:taboption("basic", ListValue, "ipv4_service_name", + translate("DDNS Service provider") .. " [IPv4]" ) +svc4.default = "-" +svc4:depends("use_ipv6", "0") -- only show on IPv4 +function svc4.cfgvalue(self, section) + local v = DDNS.read_value(self, section, "service_name") + if v and (#v > 0) then + for s, u in UTIL.kspairs(services4) do + if v == s then return v end + end + end + return "-" +end +function svc4.validate(self, value) + if usev6:formvalue(section) ~= "1" then -- do only on IPv4 + return value + else + return "" -- suppress validate error + end +end +function svc4.write(self, section, value) + if usev6:formvalue(section) ~= "1" then -- do only IPv4 here + self.map:del(section, self.option) -- to be shure + if value ~= "-" then -- and write "service_name + self.map:del(section, "update_url") -- delete update_url + self.map:del(section, "update_script") -- delete update_script + return self.map:set(section, "service_name", value) + else + return self.map:del(section, "service_name") + end + end +end +function svc4.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv6 - service_name -- ##################################################### +svc6 = ns:taboption("basic", ListValue, "ipv6_service_name", + translate("DDNS Service provider") .. " [IPv6]" ) +svc6.default = "-" +svc6:depends("use_ipv6", "1") -- only show on IPv6 +if not DDNS.has_ipv6 then + svc6.description = err_ipv6_basic +end +function svc6.cfgvalue(self, section) + local v = DDNS.read_value(self, section, "service_name") + if v and (#v > 0) then + for s, u in UTIL.kspairs(services4) do + if v == s then return v end + end + end + return "-" +end +function svc6.validate(self, value) + if usev6:formvalue(section) == "1" then -- do only on IPv6 + if DDNS.has_ipv6 then return value end + return nil, err_tab_basic(self) .. err_ipv6_plain + else + return "" -- suppress validate error + end +end +function svc6.write(self, section, value) + if usev6:formvalue(section) == "1" then -- do only when IPv6 + self.map:del(section, self.option) -- delete "ipv6_service_name" helper + if value ~= "-" then -- and write "service_name + self.map:del(section, "update_url") -- delete update_url + self.map:del(section, "update_script") -- delete update_script + return self.map:set(section, "service_name", value) + else + return self.map:del(section, "service_name") + end + end +end +function svc6.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - change Provider -- ############################################# +svs = ns:taboption("basic", Button, "_switch") +svs.title = translate("Really change DDNS provider?") +svs.inputtitle = translate("Change provider") +svs.inputstyle = "apply" + +-- IPv4/IPv6 - update_url -- ################################################## +uurl = ns:taboption("basic", Value, "update_url", + translate("Custom update-URL"), + translate("Update URL to be used for updating your DDNS Provider." .. "
      " .. + "Follow instructions you will find on their WEB page.") ) +function uurl.validate(self, value) + local fush = ush:formvalue(section) + local fusev6 = usev6:formvalue(section) + + if (fusev6 ~= "1" and svc4:formvalue(section) ~= "-") or + (fusev6 == "1" and svc6:formvalue(section) ~= "-") then + return "" -- suppress validate error + elseif not value or (#value == 0) then + if not fush or (#fush == 0) then + return nil, err_tab_basic(self) .. translate("missing / required") + else + return "" -- suppress validate error / update_script is given + end + elseif (#fush > 0) then + return nil, err_tab_basic(self) .. translate("either url or script could be set") + end + + local url = DDNS.parse_url(value) + if not url.scheme == "http" then + return nil, err_tab_basic(self) .. translate("must start with 'http://'") + elseif not url.query then + return nil, err_tab_basic(self) .. " " .. translate("missing / required") + elseif not url.host then + return nil, err_tab_basic(self) .. " " .. translate("missing / required") + elseif SYS.call([[nslookup ]] .. url.host .. [[ >/dev/null 2>&1]]) ~= 0 then + return nil, err_tab_basic(self) .. translate("can not resolve host: ") .. url.host + end + + return value +end +function uurl.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - update_script -- ############################################### +ush = ns:taboption("basic", Value, "update_script", + translate("Custom update-script"), + translate("Custom update script to be used for updating your DDNS Provider.") ) +function ush.validate(self, value) + local fuurl = uurl:formvalue(section) + local fusev6 = usev6:formvalue(section) + + if (fusev6 ~= "1" and svc4:formvalue(section) ~= "-") or + (fusev6 == "1" and svc6:formvalue(section) ~= "-") then + return "" -- suppress validate error + elseif not value or (#value == 0) then + if not fuurl or (#fuurl == 0) then + return nil, err_tab_basic(self) .. translate("missing / required") + else + return "" -- suppress validate error / update_url is given + end + elseif (#fuurl > 0) then + return nil, err_tab_basic(self) .. translate("either url or script could be set") + elseif not NXFS.access(value) then + return nil, err_tab_basic(self) .. translate("File not found") + end + return value +end +function ush.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - domain -- ###################################################### +dom = ns:taboption("basic", Value, "domain", + translate("Domain"), + translate("Replaces [DOMAIN] in Update-URL") ) +dom.placeholder = "myhost.example.com" +function dom.validate(self, value) + return _option_validate(self, value) +end +function dom.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - username -- #################################################### +user = ns:taboption("basic", Value, "username", + translate("Username"), + translate("Replaces [USERNAME] in Update-URL (URL-encoded)") ) +function user.validate(self, value) + return _option_validate(self, value) +end +function user.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - password -- #################################################### +pw = ns:taboption("basic", Value, "password", + translate("Password"), + translate("Replaces [PASSWORD] in Update-URL (URL-encoded)") ) +pw.password = true +function pw.validate(self, value) + return _option_validate(self, value) +end +function pw.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - param_enc -- ################################################### +pe = ns:taboption("basic", Value, "param_enc", + translate("Optional Encoded Parameter"), + translate("Optional: Replaces [PARAMENC] in Update-URL (URL-encoded)") ) +function pe.validate(self, value) + return _option_validate(self, value) +end +function pe.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - param_enc -- ################################################### +po = ns:taboption("basic", Value, "param_opt", + translate("Optional Parameter"), + translate("Optional: Replaces [PARAMOPT] in Update-URL (NOT URL-encoded)") ) +function po.validate(self, value) + return _option_validate(self, value) +end +function po.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- handled service dependent show/display -- ################################## +-- IPv4 -- +local cv4 = svc4:cfgvalue(section) +if cv4 ~= "-" then + svs:depends ("ipv4_service_name", "-" ) -- show only if "-" + ush:depends ("ipv4_service_name", "?") + uurl:depends("ipv4_service_name", "?") +else + uurl:depends("ipv4_service_name", "-") + ush:depends ("ipv4_service_name", "-") + dom:depends("ipv4_service_name", "-" ) + user:depends("ipv4_service_name", "-" ) + pw:depends("ipv4_service_name", "-" ) + pe:depends("ipv4_service_name", "-" ) + po:depends("ipv4_service_name", "-" ) +end +for s, u in UTIL.kspairs(services4) do + svc4:value(s) -- fill DropDown-List + if cv4 ~= s then + svs:depends("ipv4_service_name", s ) + else + dom:depends ("ipv4_service_name", ((_option_used(dom.option, u) == 1) and s or "?") ) + user:depends("ipv4_service_name", ((_option_used(user.option, u) == 1) and s or "?") ) + pw:depends ("ipv4_service_name", ((_option_used(pw.option, u) == 1) and s or "?") ) + pe:depends ("ipv4_service_name", ((_option_used(pe.option, u) == 1) and s or "?") ) + po:depends ("ipv4_service_name", ((_option_used(po.option, u) == 1) and s or "?") ) + end +end +svc4:value("-", translate("-- custom --") ) + +-- IPv6 -- +local cv6 = svc6:cfgvalue(section) +if cv6 ~= "-" then + svs:depends ("ipv6_service_name", "-" ) + uurl:depends("ipv6_service_name", "?") + ush:depends ("ipv6_service_name", "?") +else + uurl:depends("ipv6_service_name", "-") + ush:depends ("ipv6_service_name", "-") + dom:depends("ipv6_service_name", "-" ) + user:depends("ipv6_service_name", "-" ) + pw:depends("ipv6_service_name", "-" ) + pe:depends("ipv6_service_name", "-" ) + po:depends("ipv6_service_name", "-" ) +end +for s, u in UTIL.kspairs(services6) do + svc6:value(s) -- fill DropDown-List + if cv6 ~= s then + svs:depends("ipv6_service_name", s ) + else + dom:depends ("ipv6_service_name", ((_option_used(dom.option, u) == 1) and s or "?") ) + user:depends("ipv6_service_name", ((_option_used(user.option, u) == 1) and s or "?") ) + pw:depends ("ipv6_service_name", ((_option_used(pw.option, u) == 1) and s or "?") ) + pe:depends ("ipv6_service_name", ((_option_used(pe.option, u) == 1) and s or "?") ) + po:depends ("ipv6_service_name", ((_option_used(po.option, u) == 1) and s or "?") ) + end +end +svc6:value("-", translate("-- custom --") ) + +-- IPv4/IPv6 - use_https -- ################################################### +if DDNS.has_ssl or ( ( m:get(section, "use_https") or "0" ) == "1" ) then + https = ns:taboption("basic", Flag, "use_https", + translate("Use HTTP Secure") ) + https.orientation = "horizontal" + function https.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) + if not DDNS.has_ssl and value == "1" then + self.description = bold_on .. font_red .. + translate("HTTPS not supported") .. font_off .. "
      " .. + translate("please disable") .. " !" .. bold_off + else + self.description = translate("Enable secure communication with DDNS provider") + end + return value + end + function https.validate(self, value) + if (value == "1" and DDNS.has_ssl ) or value == "0" then return value end + return nil, err_tab_basic(self) .. translate("HTTPS not supported") .. " !" + end + function https.write(self, section, value) + if value == "1" then + return self.map:set(section, self.option, value) + else + self.map:del(section, "cacert") + return self.map:del(section, self.option) + end + end +end + +-- IPv4/IPv6 - cacert -- ###################################################### +if DDNS.has_ssl then + cert = ns:taboption("basic", Value, "cacert", + translate("Path to CA-Certificate"), + translate("directory or path/file") .. "
      " .. + translate("or") .. bold_on .. " IGNORE " .. bold_off .. + translate("to run HTTPS without verification of server certificates (insecure)") ) + cert:depends("use_https", "1") + cert.placeholder = "/etc/ssl/certs" + cert.forcewrite = true + function cert.validate(self, value) + if https:formvalue(section) ~= "1" then + return "" -- suppress validate error if NOT https + end + if value then -- otherwise errors in datatype check + if DTYP.directory(value) + or DTYP.file(value) + or (value == "IGNORE") + or (#value == 0) then + return value + end + end + return nil, err_tab_basic(self) .. + translate("file or directory not found or not 'IGNORE'") .. " !" + end + function cert.parse(self, section, novld) + DDNS.value_parse(self, section, novld) + end +end + +-- TAB: Advanced ################################################################################# +-- IPv4 - ip_source -- ######################################################## +src4 = ns:taboption("advanced", ListValue, "ipv4_source", + translate("IP address source") .. " [IPv4]", + translate("Defines the source to read systems IPv4-Address from, that will be send to the DDNS provider") ) +src4:depends("use_ipv6", "0") -- IPv4 selected +src4.default = "network" +src4:value("network", translate("Network")) +src4:value("web", translate("URL")) +src4:value("interface", translate("Interface")) +src4:value("script", translate("Script")) +function src4.cfgvalue(self, section) + return DDNS.read_value(self, section, "ip_source") +end +function src4.validate(self, value) + if usev6:formvalue(section) == "1" then + return "" -- ignore on IPv6 selected + elseif not _verify_ip_source() then + return nil, err_tab_adv(self) .. + translate("can not detect local IP. Please select a different Source combination") + else + return value + end +end +function src4.write(self, section, value) + if usev6:formvalue(section) == "1" then + return true -- ignore on IPv6 selected + elseif value == "network" then + self.map:del(section, "ip_url") -- delete not need parameters + self.map:del(section, "ip_interface") + self.map:del(section, "ip_script") + elseif value == "web" then + self.map:del(section, "ip_network") -- delete not need parameters + self.map:del(section, "ip_interface") + self.map:del(section, "ip_script") + elseif value == "interface" then + self.map:del(section, "ip_network") -- delete not need parameters + self.map:del(section, "ip_url") + self.map:del(section, "ip_script") + elseif value == "script" then + self.map:del(section, "ip_network") + self.map:del(section, "ip_url") -- delete not need parameters + self.map:del(section, "ip_interface") + end + self.map:del(section, self.option) -- delete "ipv4_source" helper + return self.map:set(section, "ip_source", value) -- and write "ip_source +end +function src4.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv6 - ip_source -- ######################################################## +src6 = ns:taboption("advanced", ListValue, "ipv6_source", + translate("IP address source") .. " [IPv6]", + translate("Defines the source to read systems IPv6-Address from, that will be send to the DDNS provider") ) +src6:depends("use_ipv6", 1) -- IPv6 selected +src6.default = "network" +src6:value("network", translate("Network")) +src6:value("web", translate("URL")) +src6:value("interface", translate("Interface")) +src6:value("script", translate("Script")) +if not DDNS.has_ipv6 then + src6.description = err_ipv6_other +end +function src6.cfgvalue(self, section) + return DDNS.read_value(self, section, "ip_source") +end +function src6.validate(self, value) + if usev6:formvalue(section) ~= "1" then + return "" -- ignore on IPv4 selected + elseif not DDNS.has_ipv6 then + return nil, err_tab_adv(self) .. err_ipv6_plain + elseif not _verify_ip_source() then + return nil, err_tab_adv(self) .. + translate("can not detect local IP. Please select a different Source combination") + else + return value + end +end +function src6.write(self, section, value) + if usev6:formvalue(section) ~= "1" then + return true -- ignore on IPv4 selected + elseif value == "network" then + self.map:del(section, "ip_url") -- delete not need parameters + self.map:del(section, "ip_interface") + self.map:del(section, "ip_script") + elseif value == "web" then + self.map:del(section, "ip_network") -- delete not need parameters + self.map:del(section, "ip_interface") + self.map:del(section, "ip_script") + elseif value == "interface" then + self.map:del(section, "ip_network") -- delete not need parameters + self.map:del(section, "ip_url") + self.map:del(section, "ip_script") + elseif value == "script" then + self.map:del(section, "ip_network") + self.map:del(section, "ip_url") -- delete not need parameters + self.map:del(section, "ip_interface") + end + self.map:del(section, self.option) -- delete "ipv4_source" helper + return self.map:set(section, "ip_source", value) -- and write "ip_source +end +function src6.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4 - ip_network (default "wan") -- ####################################### +ipn4 = ns:taboption("advanced", ListValue, "ipv4_network", + translate("Network") .. " [IPv4]", + translate("Defines the network to read systems IPv4-Address from") ) +ipn4:depends("ipv4_source", "network") +ipn4.default = "wan" +WADM.cbi_add_networks(ipn4) +function ipn4.cfgvalue(self, section) + return DDNS.read_value(self, section, "ip_network") +end +function ipn4.validate(self, value) + if usev6:formvalue(section) == "1" + or src4:formvalue(section) ~= "network" then + -- ignore if IPv6 selected OR + -- ignore everything except "network" + return "" + else + return value + end +end +function ipn4.write(self, section, value) + if usev6:formvalue(section) == "1" + or src4:formvalue(section) ~= "network" then + -- ignore if IPv6 selected OR + -- ignore everything except "network" + return true + else + -- set also as "interface" for monitoring events changes/hot-plug + self.map:set(section, "interface", value) + self.map:del(section, self.option) -- delete "ipv4_network" helper + return self.map:set(section, "ip_network", value) -- and write "ip_network" + end +end +function ipn4.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv6 - ip_network (default "wan6") -- ###################################### +ipn6 = ns:taboption("advanced", ListValue, "ipv6_network", + translate("Network") .. " [IPv6]" ) +ipn6:depends("ipv6_source", "network") +ipn6.default = "wan6" +WADM.cbi_add_networks(ipn6) +if DDNS.has_ipv6 then + ipn6.description = translate("Defines the network to read systems IPv6-Address from") +else + ipn6.description = err_ipv6_other +end +function ipn6.cfgvalue(self, section) + return DDNS.read_value(self, section, "ip_network") +end +function ipn6.validate(self, value) + if usev6:formvalue(section) ~= "1" + or src6:formvalue(section) ~= "network" then + -- ignore if IPv4 selected OR + -- ignore everything except "network" + return "" + elseif DDNS.has_ipv6 then + return value + else + return nil, err_tab_adv(self) .. err_ipv6_plain + end +end +function ipn6.write(self, section, value) + if usev6:formvalue(section) ~= "1" + or src6:formvalue(section) ~= "network" then + -- ignore if IPv4 selected OR + -- ignore everything except "network" + return true + else + -- set also as "interface" for monitoring events changes/hotplug + self.map:set(section, "interface", value) + self.map:del(section, self.option) -- delete "ipv6_network" helper + return self.map:set(section, "ip_network", value) -- and write "ip_network" + end +end +function ipn6.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4 - ip_url (default "checkip.dyndns.com") -- ############################ +iurl4 = ns:taboption("advanced", Value, "ipv4_url", + translate("URL to detect") .. " [IPv4]", + translate("Defines the Web page to read systems IPv4-Address from") ) +iurl4:depends("ipv4_source", "web") +iurl4.default = "http://checkip.dyndns.com" +function iurl4.cfgvalue(self, section) + return DDNS.read_value(self, section, "ip_url") +end +function iurl4.validate(self, value) + if usev6:formvalue(section) == "1" + or src4:formvalue(section) ~= "web" then + -- ignore if IPv6 selected OR + -- ignore everything except "web" + return "" + elseif not value or #value == 0 then + return nil, err_tab_adv(self) .. translate("missing / required") + end + + local url = DDNS.parse_url(value) + if not (url.scheme == "http" or url.scheme == "https") then + return nil, err_tab_adv(self) .. translate("must start with 'http://'") + elseif not url.host then + return nil, err_tab_adv(self) .. " " .. translate("missing / required") + elseif SYS.call([[nslookup ]] .. url.host .. [[>/dev/null 2>&1]]) ~= 0 then + return nil, err_tab_adv(self) .. translate("can not resolve host: ") .. url.host + else + return value + end +end +function iurl4.write(self, section, value) + if usev6:formvalue(section) == "1" + or src4:formvalue(section) ~= "web" then + -- ignore if IPv6 selected OR + -- ignore everything except "web" + return true + else + self.map:del(section, self.option) -- delete "ipv4_url" helper + return self.map:set(section, "ip_url", value) -- and write "ip_url" + end +end +function iurl4.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv6 - ip_url (default "checkipv6.dyndns.com") -- ########################## +iurl6 = ns:taboption("advanced", Value, "ipv6_url", + translate("URL to detect") .. " [IPv6]" ) +iurl6:depends("ipv6_source", "web") +iurl6.default = "http://checkipv6.dyndns.com" +if DDNS.has_ipv6 then + iurl6.description = translate("Defines the Web page to read systems IPv6-Address from") +else + iurl6.description = err_ipv6_other +end +function iurl6.cfgvalue(self, section) + return DDNS.read_value(self, section, "ip_url") +end +function iurl6.validate(self, value) + if usev6:formvalue(section) ~= "1" + or src6:formvalue(section) ~= "web" then + -- ignore if IPv4 selected OR + -- ignore everything except "web" + return "" + elseif not DDNS.has_ipv6 then + return nil, err_tab_adv(self) .. err_ipv6_plain + elseif not value or #value == 0 then + return nil, err_tab_adv(self) .. translate("missing / required") + end + + local url = DDNS.parse_url(value) + if not (url.scheme == "http" or url.scheme == "https") then + return nil, err_tab_adv(self) .. translate("must start with 'http://'") + elseif not url.host then + return nil, err_tab_adv(self) .. " " .. translate("missing / required") + elseif SYS.call([[nslookup ]] .. url.host .. [[>/dev/null 2>&1]]) ~= 0 then + return nil, err_tab_adv(self) .. translate("can not resolve host: ") .. url.host + else + return value + end +end +function iurl6.write(self, section, value) + if usev6:formvalue(section) ~= "1" + or src6:formvalue(section) ~= "web" then + -- ignore if IPv4 selected OR + -- ignore everything except "web" + return true + else + self.map:del(section, self.option) -- delete "ipv6_url" helper + return self.map:set(section, "ip_url", value) -- and write "ip_url" + end +end +function iurl6.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4 + IPv6 - ip_interface -- ############################################## +ipi = ns:taboption("advanced", ListValue, "ip_interface", + translate("Interface"), + translate("Defines the interface to read systems IP-Address from") ) +ipi:depends("ipv4_source", "interface") -- IPv4 +ipi:depends("ipv6_source", "interface") -- or IPv6 +for _, v in pairs(SYS.net.devices()) do + -- show only interface set to a network + -- and ignore loopback + net = WADM.iface_get_network(v) + if net and net ~= "loopback" then + ipi:value(v) + end +end +function ipi.validate(self, value) + local fusev6 = usev6:formvalue(section) + if (fusev6 ~= "1" and src4:formvalue(section) ~= "interface") + or (fusev6 == "1" and src6:formvalue(section) ~= "interface") then + return "" + else + return value + end +end +function ipi.write(self, section, value) + local fusev6 = usev6:formvalue(section) + if (fusev6 ~= "1" and src4:formvalue(section) ~= "interface") + or (fusev6 == "1" and src6:formvalue(section) ~= "interface") then + return true + else + -- get network from device to + -- set also as "interface" for monitoring events changes/hotplug + local net = WADM.iface_get_network(value) + self.map:set(section, "interface", net) + return self.map:set(section, self.option, value) + end +end +function ipi.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4 + IPv6 - ip_script -- ################################################# +ips = ns:taboption("advanced", Value, "ip_script", + translate("Script"), + translate("User defined script to read systems IP-Address") ) +ips:depends("ipv4_source", "script") -- IPv4 +ips:depends("ipv6_source", "script") -- or IPv6 +ips.placeholder = "/path/to/script.sh" +function ips.validate(self, value) + local fusev6 = usev6:formvalue(section) + local split + if value then split = UTIL.split(value, " ") end + + if (fusev6 ~= "1" and src4:formvalue(section) ~= "script") + or (fusev6 == "1" and src6:formvalue(section) ~= "script") then + return "" + elseif not value or not (#value > 0) or not NXFS.access(split[1], "x") then + return nil, err_tab_adv(self) .. + translate("not found or not executable - Sample: '/path/to/script.sh'") + else + return value + end +end +function ips.write(self, section, value) + local fusev6 = usev6:formvalue(section) + if (fusev6 ~= "1" and src4:formvalue(section) ~= "script") + or (fusev6 == "1" and src6:formvalue(section) ~= "script") then + return true + else + return self.map:set(section, self.option, value) + end +end +function ips.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4 - interface - default "wan" -- ######################################## +-- event network to monitor changes/hotplug/dynamic_dns_updater.sh +-- only needs to be set if "ip_source"="web" or "script" +-- if "ip_source"="network" or "interface" we use their network +eif4 = ns:taboption("advanced", ListValue, "ipv4_interface", + translate("Event Network") .. " [IPv4]", + translate("Network on which the ddns-updater scripts will be started") ) +eif4:depends("ipv4_source", "web") +eif4:depends("ipv4_source", "script") +eif4.default = "wan" +WADM.cbi_add_networks(eif4) +function eif4.cfgvalue(self, section) + return DDNS.read_value(self, section, "interface") +end +function eif4.validate(self, value) + local fsrc4 = src4:formvalue(section) or "" + if usev6:formvalue(section) == "1" + or fsrc4 == "network" + or fsrc4 == "interface" then + return "" -- ignore IPv6, network, interface + else + return value + end +end +function eif4.write(self, section, value) + local fsrc4 = src4:formvalue(section) or "" + if usev6:formvalue(section) == "1" + or fsrc4 == "network" + or fsrc4 == "interface" then + return true -- ignore IPv6, network, interface + else + self.map:del(section, self.option) -- delete "ipv4_interface" helper + return self.map:set(section, "interface", value) -- and write "interface" + end +end +function eif4.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv6 - interface - default "wan6" -- ####################################### +-- event network to monitor changes/hotplug +-- only needs to be set if "ip_source"="web" or "script" +-- if "ip_source"="network" or "interface" we use their network +eif6 = ns:taboption("advanced", ListValue, "ipv6_interface", + translate("Event Network") .. " [IPv6]" ) +eif6:depends("ipv6_source", "web") +eif6:depends("ipv6_source", "script") +eif6.default = "wan6" +WADM.cbi_add_networks(eif6) +if not DDNS.has_ipv6 then + eif6.description = err_ipv6_other +else + eif6.description = translate("Network on which the ddns-updater scripts will be started") +end +function eif6.cfgvalue(self, section) + return DDNS.read_value(self, section, "interface") +end +function eif6.validate(self, value) + local fsrc6 = src6:formvalue(section) or "" + if usev6:formvalue(section) ~= "1" + or fsrc6 == "network" + or fsrc6 == "interface" then + return "" -- ignore IPv4, network, interface + elseif not DDNS.has_ipv6 then + return nil, err_tab_adv(self) .. err_ipv6_plain + else + return value + end +end +function eif6.write(self, section, value) + local fsrc6 = src6:formvalue(section) or "" + if usev6:formvalue(section) ~= "1" + or fsrc6 == "network" + or fsrc6 == "interface" then + return true -- ignore IPv4, network, interface + else + self.map:del(section, self.option) -- delete "ipv6_interface" helper + return self.map:set(section, "interface", value) -- and write "interface" + end +end +function eif6.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- IPv4/IPv6 - bind_network -- ################################################ +if DDNS.has_bindnet or ( ( m:get(section, "bind_network") or "" ) ~= "" ) then + bnet = ns:taboption("advanced", ListValue, "bind_network", + translate("Bind Network") ) + bnet:depends("ipv4_source", "web") + bnet:depends("ipv6_source", "web") + bnet.default = "" + bnet:value("", translate("-- default --")) + WADM.cbi_add_networks(bnet) + function bnet.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) + if not DDNS.has_bindnet and value ~= "" then + self.description = bold_on .. font_red .. + translate("Binding to a specific network not supported") .. font_off .. "
      " .. + translate("please set to 'default'") .. " !" .. bold_off + else + self.description = translate("OPTIONAL: Network to use for communication") .. + "
      " .. translate("Casual users should not change this setting") + end + return value + end + function bnet.validate(self, value) + if ( (value ~= "") and DDNS.has_bindnet ) or (value == "") then return value end + return nil, err_tab_adv(self) .. translate("Binding to a specific network not supported") .. " !" + end + function bnet.parse(self, section, novld) + DDNS.value_parse(self, section, novld) + end +end + +-- IPv4 + IPv6 - force_ipversion -- ########################################### +-- optional to force wget/curl and host to use only selected IP version +-- command parameter "-4" or "-6" +if DDNS.has_forceip or ( ( m:get(section, "force_ipversion") or "0" ) ~= "0" ) then + fipv = ns:taboption("advanced", Flag, "force_ipversion", + translate("Force IP Version") ) + fipv.orientation = "horizontal" + function fipv.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) + if not DDNS.has_forceip and value ~= "0" then + self.description = bold_on .. font_red .. + translate("Force IP Version not supported") .. font_off .. "
      " .. + translate("please disable") .. " !" .. bold_off + else + self.description = translate("OPTIONAL: Force the usage of pure IPv4/IPv6 only communication.") + end + return value + end + function fipv.validate(self, value) + if (value == "1" and DDNS.has_forceip) or value == "0" then return value end + return nil, err_tab_adv(self) .. translate("Force IP Version not supported") + end +end + +-- IPv4 + IPv6 - dns_server -- ################################################ +-- optional DNS Server to use resolving my IP +if DDNS.has_dnsserver or ( ( m:get(section, "dns_server") or "" ) ~= "" ) then + dns = ns:taboption("advanced", Value, "dns_server", + translate("DNS-Server"), + translate("OPTIONAL: Use non-default DNS-Server to detect 'Registered IP'.") .. "
      " .. + translate("Format: IP or FQDN")) + dns.placeholder = "mydns.lan" + function dns.validate(self, value) + -- if .datatype is set, then it is checked before calling this function + if not value or (#value == 0) then + return "" -- ignore on empty + elseif not DDNS.has_dnsserver then + return nil, err_tab_adv(self) .. translate("Specifying a DNS-Server is not supported") + elseif not DTYP.host(value) then + return nil, err_tab_adv(self) .. translate("use hostname, FQDN, IPv4- or IPv6-Address") + else + local ipv6 = usev6:formvalue(section) or "0" + local force = fipv:formvalue(section) or "0" + local command = CTRL.luci_helper .. [[ -]] + if (ipv6 == 1) then command = command .. [[6]] end + if (force == 1) then command = command .. [[f]] end + command = command .. [[d ]] .. value .. [[ -- verify_dns]] + + local ret = SYS.call(command) + if ret == 0 then return value -- everything OK + elseif ret == 2 then return nil, err_tab_adv(self) .. translate("nslookup can not resolve host") + elseif ret == 3 then return nil, err_tab_adv(self) .. translate("nc (netcat) can not connect") + elseif ret == 4 then return nil, err_tab_adv(self) .. translate("Forced IP Version don't matched") + else return nil, err_tab_adv(self) .. translate("unspecific error") + end + end + end + function dns.parse(self, section, novld) + DDNS.value_parse(self, section, novld) + end +end + +-- IPv4 + IPv6 - force_dnstcp -- ############################################## +if DDNS.has_bindhost or ( ( m:get(section, "force_dnstcp") or "0" ) ~= "0" ) then + tcp = ns:taboption("advanced", Flag, "force_dnstcp", + translate("Force TCP on DNS") ) + tcp.orientation = "horizontal" + function tcp.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) + if not DDNS.has_bindhost and value ~= "0" then + self.description = bold_on .. font_red .. + translate("DNS requests via TCP not supported") .. font_off .. "
      " .. + translate("please disable") .. " !" .. bold_off + else + self.description = translate("OPTIONAL: Force the use of TCP instead of default UDP on DNS requests.") + end + return value + end + function tcp.validate(self, value) + if (value == "1" and DDNS.has_bindhost ) or value == "0" then + return value + end + return nil, err_tab_adv(self) .. translate("DNS requests via TCP not supported") + end +end + +-- IPv4 + IPv6 - proxy -- ##################################################### +-- optional Proxy to use for http/https requests [user:password@]proxyhost[:port] +if DDNS.has_proxy or ( ( m:get(section, "proxy") or "" ) ~= "" ) then + pxy = ns:taboption("advanced", Value, "proxy", + translate("PROXY-Server") ) + pxy.placeholder="user:password@myproxy.lan:8080" + function pxy.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) + if not DDNS.has_proxy and value ~= "" then + self.description = bold_on .. font_red .. + translate("PROXY-Server not supported") .. font_off .. "
      " .. + translate("please remove entry") .. "!" .. bold_off + else + self.description = translate("OPTIONAL: Proxy-Server for detection and updates.") .. "
      " .. + translate("Format") .. ": " .. bold_on .. "[user:password@]proxyhost:port" .. bold_off .. "
      " .. + translate("IPv6 address must be given in square brackets") .. ": " .. + bold_on .. " [2001:db8::1]:8080" .. bold_off + end + return value + end + function pxy.validate(self, value) + -- if .datatype is set, then it is checked before calling this function + if not value or (#value == 0) then + return "" -- ignore on empty + elseif DDNS.has_proxy then + local ipv6 = usev6:formvalue(section) or "0" + local force = fipv:formvalue(section) or "0" + local command = CRTL.luci_helper .. [[ -]] + if (ipv6 == 1) then command = command .. [[6]] end + if (force == 1) then command = command .. [[f]] end + command = command .. [[p ]] .. value .. [[ -- verify_proxy]] + local ret = SYS.call(command) + if ret == 0 then return value + elseif ret == 2 then return nil, err_tab_adv(self) .. translate("nslookup can not resolve host") + elseif ret == 3 then return nil, err_tab_adv(self) .. translate("nc (netcat) can not connect") + elseif ret == 4 then return nil, err_tab_adv(self) .. translate("Forced IP Version don't matched") + elseif ret == 5 then return nil, err_tab_adv(self) .. translate("proxy port missing") + else return nil, err_tab_adv(self) .. translate("unspecific error") + end + else + return nil, err_tab_adv(self) .. translate("PROXY-Server not supported") + end + end + function pxy.parse(self, section, novld) + DDNS.value_parse(self, section, novld) + end +end + +-- use_syslog -- ############################################################## +slog = ns:taboption("advanced", ListValue, "use_syslog", + translate("Log to syslog"), + translate("Writes log messages to syslog. Critical Errors will always be written to syslog.") ) +slog.default = "2" +slog:value("0", translate("No logging")) +slog:value("1", translate("Info")) +slog:value("2", translate("Notice")) +slog:value("3", translate("Warning")) +slog:value("4", translate("Error")) +function slog.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- use_logfile -- ############################################################# +logf = ns:taboption("advanced", Flag, "use_logfile", + translate("Log to file"), + translate("Writes detailed messages to log file. File will be truncated automatically.") .. "
      " .. + translate("File") .. [[: "]] .. logdir .. [[/]] .. section .. [[.log"]] ) +logf.orientation = "horizontal" +logf.default = "1" -- if not defined write to log by default + +-- TAB: Timer #################################################################################### +-- check_interval -- ########################################################## +ci = ns:taboption("timer", Value, "check_interval", + translate("Check Interval") ) +ci.template = "ddns/detail_value" +ci.default = "10" +function ci.validate(self, value) + if not DTYP.uinteger(value) + or tonumber(value) < 1 then + return nil, err_tab_timer(self) .. translate("minimum value 5 minutes == 300 seconds") + end + + local secs = DDNS.calc_seconds(value, cu:formvalue(section)) + if secs >= 300 then + return value + else + return nil, err_tab_timer(self) .. translate("minimum value 5 minutes == 300 seconds") + end +end +function ci.write(self, section, value) + -- remove when default + local secs = DDNS.calc_seconds(value, cu:formvalue(section)) + if secs ~= 600 then --default 10 minutes + return self.map:set(section, self.option, value) + else + self.map:del(section, "check_unit") + return self.map:del(section, self.option) + end +end +function ci.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- check_unit -- ############################################################## +cu = ns:taboption("timer", ListValue, "check_unit", "not displayed, but needed otherwise error", + translate("Interval to check for changed IP" .. "
      " .. + "Values below 5 minutes == 300 seconds are not supported") ) +cu.template = "ddns/detail_lvalue" +cu.default = "minutes" +cu:value("seconds", translate("seconds")) +cu:value("minutes", translate("minutes")) +cu:value("hours", translate("hours")) +--cu:value("days", translate("days")) +function cu.write(self, section, value) + -- remove when default + local secs = DDNS.calc_seconds(ci:formvalue(section), value) + if secs ~= 600 then --default 10 minutes + return self.map:set(section, self.option, value) + else + return true + end +end +function cu.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- force_interval (modified) -- ############################################### +fi = ns:taboption("timer", Value, "force_interval", + translate("Force Interval") ) +fi.template = "ddns/detail_value" +fi.default = "72" -- see dynamic_dns_updater.sh script +--fi.rmempty = false -- validate ourselves for translatable error messages +function fi.validate(self, value) + if not DTYP.uinteger(value) + or tonumber(value) < 0 then + return nil, err_tab_timer(self) .. translate("minimum value '0'") + end + + local force_s = DDNS.calc_seconds(value, fu:formvalue(section)) + if force_s == 0 then + return value + end + + local ci_value = ci:formvalue(section) + if not DTYP.uinteger(ci_value) then + return "" -- ignore because error in check_interval above + end + + local check_s = DDNS.calc_seconds(ci_value, cu:formvalue(section)) + if force_s >= check_s then + return value + end + + return nil, err_tab_timer(self) .. translate("must be greater or equal 'Check Interval'") +end +function fi.write(self, section, value) + -- simulate rmempty=true remove default + local secs = DDNS.calc_seconds(value, fu:formvalue(section)) + if secs ~= 259200 then --default 72 hours == 3 days + return self.map:set(section, self.option, value) + else + self.map:del(section, "force_unit") + return self.map:del(section, self.option) + end +end +function fi.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- force_unit -- ############################################################## +fu = ns:taboption("timer", ListValue, "force_unit", "not displayed, but needed otherwise error", + translate("Interval to force updates send to DDNS Provider" .. "
      " .. + "Setting this parameter to 0 will force the script to only run once" .. "
      " .. + "Values lower 'Check Interval' except '0' are not supported") ) +fu.template = "ddns/detail_lvalue" +fu.default = "hours" +--fu.rmempty = false -- want to control write process +--fu:value("seconds", translate("seconds")) +fu:value("minutes", translate("minutes")) +fu:value("hours", translate("hours")) +fu:value("days", translate("days")) +function fu.write(self, section, value) + -- simulate rmempty=true remove default + local secs = DDNS.calc_seconds(fi:formvalue(section), value) + if secs ~= 259200 and secs ~= 0 then --default 72 hours == 3 days + return self.map:set(section, self.option, value) + else + return true + end +end +function fu.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- retry_count -- ############################################################# +rc = ns:taboption("timer", Value, "retry_count") +rc.title = translate("Error Retry Counter") +rc.description = translate("On Error the script will stop execution after given number of retrys") + .. "
      " + .. translate("The default setting of '0' will retry infinite.") +rc.default = "0" +function rc.validate(self, value) + if not DTYP.uinteger(value) then + return nil, err_tab_timer(self) .. translate("minimum value '0'") + else + return value + end +end +function rc.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- retry_interval -- ########################################################## +ri = ns:taboption("timer", Value, "retry_interval", + translate("Error Retry Interval") ) +ri.template = "ddns/detail_value" +ri.default = "60" +function ri.validate(self, value) + if not DTYP.uinteger(value) + or tonumber(value) < 1 then + return nil, err_tab_timer(self) .. translate("minimum value '1'") + else + return value + end +end +function ri.write(self, section, value) + -- simulate rmempty=true remove default + local secs = DDNS.calc_seconds(value, ru:formvalue(section)) + if secs ~= 60 then --default 60seconds + return self.map:set(section, self.option, value) + else + self.map:del(section, "retry_unit") + return self.map:del(section, self.option) + end +end +function ri.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- retry_unit -- ############################################################## +ru = ns:taboption("timer", ListValue, "retry_unit", "not displayed, but needed otherwise error", + translate("On Error the script will retry the failed action after given time") ) +ru.template = "ddns/detail_lvalue" +ru.default = "seconds" +--ru.rmempty = false -- want to control write process +ru:value("seconds", translate("seconds")) +ru:value("minutes", translate("minutes")) +--ru:value("hours", translate("hours")) +--ru:value("days", translate("days")) +function ru.write(self, section, value) + -- simulate rmempty=true remove default + local secs = DDNS.calc_seconds(ri:formvalue(section), value) + if secs ~= 60 then --default 60seconds + return self.map:set(section, self.option, value) + else + return true -- will be deleted by retry_interval + end +end +function ru.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- TAB: LogView ################################################################################## +lv = ns:taboption("logview", DummyValue, "_logview") +lv.template = "ddns/detail_logview" +lv.inputtitle = translate("Read / Reread log file") +lv.rows = 50 +function lv.cfgvalue(self, section) + local lfile=logdir .. "/" .. section .. ".log" + if NXFS.access(lfile) then + return lfile .. "\n" .. translate("Please press [Read] button") + end + return lfile .. "\n" .. translate("File not found or empty") +end + +return m diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/global.lua b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/global.lua new file mode 100644 index 0000000..9dc0857 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/global.lua @@ -0,0 +1,121 @@ +-- Copyright 2014 Christian Schoenebeck +-- Licensed to the public under the Apache License 2.0. + +local NX = require "nixio" +local NXFS = require "nixio.fs" +local DISP = require "luci.dispatcher" +local SYS = require "luci.sys" +local CTRL = require "luci.controller.ddns" -- this application's controller +local DDNS = require "luci.tools.ddns" -- ddns multiused functions + +-- cbi-map definition -- ####################################################### +local m = Map("ddns") +m.title = CTRL.app_title_back() +m.description = CTRL.app_description() +m.redirect = DISP.build_url("admin", "services", "ddns") + +function m.commit_handler(self) + if self.changed then -- changes ? + local command = CTRL.luci_helper .. " -- reload" + os.execute(command) -- reload configuration + end +end + +-- cbi-section definition -- ################################################### +local ns = m:section( NamedSection, "global", "ddns", + translate("Global Settings"), + translate("Configure here the details for all Dynamic DNS services including this LuCI application.") + .. [[
      ]] + .. translate("It is NOT recommended for casual users to change settings on this page.") + .. [[
      ]] + .. [[]] + .. translate("For detailed information about parameter settings look here.") + .. [[]] + ) + +-- section might not exist +function ns.cfgvalue(self, section) + if not self.map:get(section) then + self.map:set(section, nil, self.sectiontype) + end + return self.map:get(section) +end + +-- upd_privateip -- ########################################################### +local ali = ns:option(Flag, "upd_privateip") +ali.title = translate("Allow non-public IP's") +ali.description = translate("Non-public and by default blocked IP's") .. ":" + .. [[
      IPv4: ]] + .. "0/8, 10/8, 100.64/10, 127/8, 169.254/16, 172.16/12, 192.168/16" + .. [[
      IPv6: ]] + .. "::/32, f000::/4" +ali.default = "0" + +-- ddns_dateformat -- ######################################################### +local df = ns:option(Value, "ddns_dateformat") +df.title = translate("Date format") +df.description = [[]] + .. translate("For supported codes look here") + .. [[]] +df.template = "ddns/global_value" +df.default = "%F %R" +df.date_string = "" +function df.cfgvalue(self, section) + local value = AbstractValue.cfgvalue(self, section) or self.default + local epoch = os.time() + self.date_string = DDNS.epoch2date(epoch, value) + return value +end +function df.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- ddns_rundir -- ############################################################# +local rd = ns:option(Value, "ddns_rundir") +rd.title = translate("Status directory") +rd.description = translate("Directory contains PID and other status information for each running section") +rd.default = "/var/run/ddns" +-- no need to validate. if empty default is used everything else created by dns-scripts +function rd.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- ddns_logdir -- ############################################################# +local ld = ns:option(Value, "ddns_logdir") +ld.title = translate("Log directory") +ld.description = translate("Directory contains Log files for each running section") +ld.default = "/var/log/ddns" +-- no need to validate. if empty default is used everything else created by dns-scripts +function ld.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- ddns_loglines -- ########################################################### +local ll = ns:option(Value, "ddns_loglines") +ll.title = translate("Log length") +ll.description = translate("Number of last lines stored in log files") +ll.default = "250" +function ll.validate(self, value) + local n = tonumber(value) + if not n or math.floor(n) ~= n or n < 1 then + return nil, self.title .. ": " .. translate("minimum value '1'") + end + return value +end +function ll.parse(self, section, novld) + DDNS.value_parse(self, section, novld) +end + +-- use_curl -- ################################################################ +if (SYS.call([[ grep -i "\+ssl" /usr/bin/wget >/dev/null 2>&1 ]]) == 0) +and NXFS.access("/usr/bin/curl") then + local pc = ns:option(Flag, "use_curl") + pc.title = translate("Use cURL") + pc.description = translate("If both cURL and GNU Wget are installed, Wget is used by default.") + .. [[
      ]] + .. translate("To use cURL activate this option.") + pc.orientation = "horizontal" + pc.default = "0" +end + +return m diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/hints.lua b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/hints.lua new file mode 100644 index 0000000..df39a3a --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/hints.lua @@ -0,0 +1,166 @@ +-- Copyright 2014-2016 Christian Schoenebeck +-- Licensed to the public under the Apache License 2.0. + +local DISP = require "luci.dispatcher" +local SYS = require "luci.sys" +local CTRL = require "luci.controller.ddns" -- this application's controller +local DDNS = require "luci.tools.ddns" -- ddns multiused functions + +-- html constants +font_red = [[]] +font_off = [[]] +bold_on = [[]] +bold_off = [[]] + +-- cbi-map definition -- ####################################################### +m = Map("ddns") +m.title = CTRL.app_title_back() +m.description = CTRL.app_description() +m.redirect = DISP.build_url("admin", "services", "ddns") + +-- SimpleSection definition -- ################################################# +-- show Hints to optimize installation and script usage +s = m:section( SimpleSection, + translate("Hints"), + translate("Below a list of configuration tips for your system to run Dynamic DNS updates without limitations") ) + +-- ddns-scripts needs to be updated for full functionality +if not CTRL.service_ok() then + local so = s:option(DummyValue, "_update_needed") + so.titleref = DISP.build_url("admin", "system", "packages") + so.rawhtml = true + so.title = font_red .. bold_on .. + translate("Software update required") .. bold_off .. font_off + so.value = translate("The currently installed 'ddns-scripts' package did not support all available settings.") .. + "
      " .. + translate("Please update to the current version!") +end + +-- DDNS Service disabled +if not SYS.init.enabled("ddns") then + local se = s:option(DummyValue, "_not_enabled") + se.titleref = DISP.build_url("admin", "system", "startup") + se.rawhtml = true + se.title = bold_on .. + translate("DDNS Autostart disabled") .. bold_off + se.value = translate("Currently DDNS updates are not started at boot or on interface events." .. "
      " .. + "This is the default if you run DDNS scripts by yourself (i.e. via cron with force_interval set to '0')" ) +end + +-- No IPv6 support +if not DDNS.has_ipv6 then + local v6 = s:option(DummyValue, "_no_ipv6") + v6.titleref = 'http://www.openwrt.org" target="_blank' + v6.rawhtml = true + v6.title = bold_on .. + translate("IPv6 not supported") .. bold_off + v6.value = translate("IPv6 is currently not (fully) supported by this system" .. "
      " .. + "Please follow the instructions on OpenWrt's homepage to enable IPv6 support" .. "
      " .. + "or update your system to the latest OpenWrt Release") +end + +-- No HTTPS support +if not DDNS.has_ssl then + local sl = s:option(DummyValue, "_no_https") + sl.titleref = DISP.build_url("admin", "system", "packages") + sl.rawhtml = true + sl.title = bold_on .. + translate("HTTPS not supported") .. bold_off + sl.value = translate("Neither GNU Wget with SSL nor cURL installed to support secure updates via HTTPS protocol.") .. + "
      - " .. + translate("You should install 'wget' or 'curl' or 'uclient-fetch' with 'libustream-*ssl' package.") .. + "
      - " .. + translate("In some versions cURL/libcurl in OpenWrt is compiled without proxy support.") +end + +-- No bind_network +if not DDNS.has_bindnet then + local bn = s:option(DummyValue, "_no_bind_network") + bn.titleref = DISP.build_url("admin", "system", "packages") + bn.rawhtml = true + bn.title = bold_on .. + translate("Binding to a specific network not supported") .. bold_off + bn.value = translate("Neither GNU Wget with SSL nor cURL installed to select a network to use for communication.") .. + "
      - " .. + translate("You should install 'wget' or 'curl' package.") .. + "
      - " .. + translate("GNU Wget will use the IP of given network, cURL will use the physical interface.") .. + "
      - " .. + translate("In some versions cURL/libcurl in OpenWrt is compiled without proxy support.") +end + +-- currently only cURL possibly without proxy support +if not DDNS.has_proxy then + local px = s:option(DummyValue, "_no_proxy") + px.titleref = DISP.build_url("admin", "system", "packages") + px.rawhtml = true + px.title = bold_on .. + translate("cURL without Proxy Support") .. bold_off + px.value = translate("cURL is installed, but libcurl was compiled without proxy support.") .. + "
      - " .. + translate("You should install 'wget' or 'uclient-fetch' package or replace libcurl.") .. + "
      - " .. + translate("In some versions cURL/libcurl in OpenWrt is compiled without proxy support.") +end + +-- "Force IP Version not supported" +if not DDNS.has_forceip then + local fi = s:option(DummyValue, "_no_force_ip") + fi.titleref = DISP.build_url("admin", "system", "packages") + fi.rawhtml = true + fi.title = bold_on .. + translate("Force IP Version not supported") .. bold_off + local value = translate("BusyBox's nslookup and Wget do not support to specify " .. + "the IP version to use for communication with DDNS Provider!") + if not (DDNS.has_wgetssl or DDNS.has_curl or DDNS.has_fetch) then + value = value .. "
      - " .. + translate("You should install 'wget' or 'curl' or 'uclient-fetch' package.") + end + if not DDNS.has_bindhost then + value = value .. "
      - " .. + translate("You should install 'bind-host' or 'knot-host' or 'drill' package for DNS requests.") + end + fi.value = value +end + +-- "DNS requests via TCP not supported" +if not DDNS.has_bindhost then + local dt = s:option(DummyValue, "_no_dnstcp") + dt.titleref = DISP.build_url("admin", "system", "packages") + dt.rawhtml = true + dt.title = bold_on .. + translate("DNS requests via TCP not supported") .. bold_off + dt.value = translate("BusyBox's nslookup and hostip do not support to specify to use TCP " .. + "instead of default UDP when requesting DNS server!") .. + "
      - " .. + translate("You should install 'bind-host' or 'knot-host' or 'drill' package for DNS requests.") +end + +-- nslookup compiled with musl produce problems when using +if not DDNS.has_dnsserver then + local ds = s:option(DummyValue, "_no_dnsserver") + ds.titleref = DISP.build_url("admin", "system", "packages") + ds.rawhtml = true + ds.title = bold_on .. + translate("Using specific DNS Server not supported") .. bold_off + ds.value = translate("BusyBox's nslookup in the current compiled version " .. + "does not handle given DNS Servers correctly!") .. + "
      - " .. + translate("You should install 'bind-host' or 'knot-host' or 'drill' or 'hostip' package, " .. + "if you need to specify a DNS server to detect your registered IP.") +end + +-- certificates installed +if DDNS.has_ssl and not DDNS.has_cacerts then + local ca = s:option(DummyValue, "_no_certs") + ca.titleref = DISP.build_url("admin", "system", "packages") + ca.rawhtml = true + ca.title = bold_on .. + translate("No certificates found") .. bold_off + ca.value = translate("If using secure communication you should verify server certificates!") .. + "
      - " .. + translate("Install 'ca-certificates' package or needed certificates " .. + "by hand into /etc/ssl/certs default directory") +end + +return m diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/overview.lua b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/overview.lua new file mode 100644 index 0000000..337c6e7 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/model/cbi/ddns/overview.lua @@ -0,0 +1,219 @@ +-- Copyright 2014-2016 Christian Schoenebeck +-- Licensed to the public under the Apache License 2.0. + +local NXFS = require "nixio.fs" +local DISP = require "luci.dispatcher" +local HTTP = require "luci.http" +local SYS = require "luci.sys" +local CTRL = require "luci.controller.ddns" -- this application's controller +local DDNS = require "luci.tools.ddns" -- ddns multiused functions + +local show_hints = not (DDNS.has_ipv6 -- IPv6 support + and DDNS.has_ssl -- HTTPS support + and DDNS.has_proxy -- Proxy support + and DDNS.has_bindhost -- DNS TCP support + and DDNS.has_forceip -- Force IP version + and DDNS.has_dnsserver -- DNS server support + and DDNS.has_bindnet -- Bind to network/interface + and DDNS.has_cacerts -- certificates installed at /etc/ssl/certs + ) +local not_enabled = not SYS.init.enabled("ddns") +local need_update = not CTRL.service_ok() + +-- html constants +font_red = [[]] +font_off = [[]] +bold_on = [[]] +bold_off = [[]] + +-- cbi-map definition -- ####################################################### +m = Map("ddns") +m.title = CTRL.app_title_main() +m.description = CTRL.app_description() + +m.on_after_commit = function(self) + if self.changed then -- changes ? + local command = CTRL.luci_helper + if SYS.init.enabled("ddns") then -- ddns service enabled, restart all + command = command .. " -- restart" + os.execute(command) + else -- ddns service disabled, send SIGHUP to running + command = command .. " -- reload" + os.execute(command) + end + end +end + +-- SimpleSection definition -- ################################################## +-- with all the JavaScripts we need for "a good Show" +a = m:section( SimpleSection ) +a.template = "ddns/overview_status" + +-- SimpleSection definition -- ################################################# +-- show Hints to optimize installation and script usage +if not_enabled then + + s = m:section( SimpleSection, translate("Hints") ) + + -- DDNS Service disabled + if not_enabled then + local dv = s:option(DummyValue, "_not_enabled") + dv.titleref = DISP.build_url("admin", "system", "startup") + dv.rawhtml = true + dv.title = bold_on .. + translate("DDNS Autostart disabled") .. bold_off + dv.value = translate("Currently DDNS updates are not started at boot or on interface events." .. "
      " .. + "You can start/stop each configuration here. It will run until next reboot.") + end + +end + +local_web="

       

       

      " + +-- TableSection definition -- ################################################## +ts = m:section( TypedSection, "service", + translate("Overview"), + translate("Below is a list of DDNS configurations and their current state.") + .. "
      " + .. "
      " .. local_web ) +ts.sectionhead = translate("Configuration") +ts.template = "cbi/tblsection" +ts.addremove = true +ts.extedit = DISP.build_url("admin", "services", "ddns", "detail", "%s") +function ts.create(self, name) + AbstractSection.create(self, name) + HTTP.redirect( self.extedit:format(name) ) +end + +-- Lookup_Host and registered IP -- ################################################# +dom = ts:option(DummyValue, "_lookupIP", + translate("Lookup Hostname") .. "
      " .. translate("Registered IP") ) +dom.template = "ddns/overview_doubleline" +function dom.set_one(self, section) + local lookup = self.map:get(section, "lookup_host") or "" + if lookup ~= "" then + return lookup + else + return [[]] .. translate("config error") .. [[]] + end +end +function dom.set_two(self, section) + local lookup_host = self.map:get(section, "lookup_host") or "" + if lookup_host == "" then return "" end + local dnsserver = self.map:get(section, "dnsserver") or "" + local use_ipv6 = tonumber(self.map:get(section, "use_ipv6") or 0) + local force_ipversion = tonumber(self.map:get(section, "force_ipversion") or 0) + local force_dnstcp = tonumber(self.map:get(section, "force_dnstcp") or 0) + local is_glue = tonumber(self.map:get(section, "is_glue") or 0) + local command = CTRL.luci_helper .. [[ -]] + if (use_ipv6 == 1) then command = command .. [[6]] end + if (force_ipversion == 1) then command = command .. [[f]] end + if (force_dnstcp == 1) then command = command .. [[t]] end + if (is_glue == 1) then command = command .. [[g]] end + command = command .. [[l ]] .. lookup_host + if (#dnsserver > 0) then command = command .. [[ -d ]] .. dnsserver end + command = command .. [[ -- get_registered_ip]] + local ip = SYS.exec(command) + if ip == "" then ip = translate("no data") end + return ip +end + +-- enabled +ena = ts:option( Flag, "enabled", + translate("Enabled")) +ena.template = "ddns/overview_enabled" +ena.rmempty = false + +-- show PID and next update +upd = ts:option( DummyValue, "_update", + translate("Last Update") .. "
      " .. translate("Next Update")) +upd.template = "ddns/overview_doubleline" +function upd.set_one(self, section) -- fill Last Update + -- get/validate last update + local uptime = SYS.uptime() + local lasttime = DDNS.get_lastupd(section) + if lasttime > uptime then -- /var might not be linked to /tmp and cleared on reboot + lasttime = 0 + end + + -- no last update happen + if lasttime == 0 then + return translate("never") + + -- we read last update + else + -- calc last update + -- os.epoch - sys.uptime + lastupdate(uptime) + local epoch = os.time() - uptime + lasttime + -- use linux date to convert epoch + return DDNS.epoch2date(epoch) + end +end +function upd.set_two(self, section) -- fill Next Update + -- get enabled state + local enabled = tonumber(self.map:get(section, "enabled") or 0) + local datenext = translate("unknown error") -- formatted date of next update + + -- get force seconds + local force_interval = tonumber(self.map:get(section, "force_interval") or 72) + local force_unit = self.map:get(section, "force_unit") or "hours" + local force_seconds = DDNS.calc_seconds(force_interval, force_unit) + + -- get last update and get/validate PID + local uptime = SYS.uptime() + local lasttime = DDNS.get_lastupd(section) + if lasttime > uptime then -- /var might not be linked to /tmp and cleared on reboot + lasttime = 0 + end + local pid = DDNS.get_pid(section) + + -- calc next update + if lasttime > 0 then + local epoch = os.time() - uptime + lasttime + force_seconds + -- use linux date to convert epoch + datelast = DDNS.epoch2date(epoch) + end + + -- process running but update needs to happen + if pid > 0 and ( lasttime + force_seconds - uptime ) < 0 then + datenext = translate("Verify") + + -- run once + elseif force_seconds == 0 then + datenext = translate("Run once") + + -- no process running and NOT enabled + elseif pid == 0 and enabled == 0 then + datenext = translate("Disabled") + + -- no process running and NOT + elseif pid == 0 and enabled ~= 0 then + datenext = translate("Stopped") + end + + return datenext +end + +-- start/stop button +btn = ts:option( Button, "_startstop", + translate("Process ID") .. "
      " .. translate("Start / Stop") ) +btn.template = "ddns/overview_startstop" +function btn.cfgvalue(self, section) + local pid = DDNS.get_pid(section) + if pid > 0 then + btn.inputtitle = "PID: " .. pid + btn.inputstyle = "reset" + btn.disabled = false + elseif (self.map:get(section, "enabled") or "0") ~= "0" then + btn.inputtitle = translate("Start") + btn.inputstyle = "apply" + btn.disabled = false + else + btn.inputtitle = "----------" + btn.inputstyle = "button" + btn.disabled = true + end + return true +end + +return m diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/tools/ddns.lua b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/tools/ddns.lua new file mode 100644 index 0000000..209d9c3 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/tools/ddns.lua @@ -0,0 +1,315 @@ +-- Copyright 2014-2016 Christian Schoenebeck +-- Licensed to the public under the Apache License 2.0. + +module("luci.tools.ddns", package.seeall) + +local NX = require "nixio" +local NXFS = require "nixio.fs" +local OPKG = require "luci.model.ipkg" +local UCI = require "luci.model.uci" +local SYS = require "luci.sys" +local UTIL = require "luci.util" + +local function _check_certs() + local _, v = NXFS.glob("/etc/ssl/certs/*.crt") + if ( v == 0 ) then _, v = NXFS.glob("/etc/ssl/certs/*.pem") end + return (v > 0) +end + +has_wgetssl = (SYS.call( [[which wget-ssl >/dev/null 2>&1]] ) == 0) -- and true or nil +has_curl = (SYS.call( [[which curl >/dev/null 2>&1]] ) == 0) +has_curlssl = (SYS.call( [[$(which curl) -V 2>&1 | grep "Protocols:" | grep -qF "https"]] ) ~= 0) +has_curlpxy = (SYS.call( [[grep -i "all_proxy" /usr/lib/libcurl.so* >/dev/null 2>&1]] ) == 0) +has_fetch = (SYS.call( [[which uclient-fetch >/dev/null 2>&1]] ) == 0) +has_fetchssl = NXFS.access("/lib/libustream-ssl.so") +has_bbwget = (SYS.call( [[$(which wget) -V 2>&1 | grep -iqF "busybox"]] ) == 0) +has_bindhost = (SYS.call( [[which host >/dev/null 2>&1]] ) == 0) + or (SYS.call( [[which khost >/dev/null 2>&1]] ) == 0) + or (SYS.call( [[which drill >/dev/null 2>&1]] ) == 0) +has_hostip = (SYS.call( [[which hostip >/dev/null 2>&1]] ) == 0) +has_nslookup = (SYS.call( [[$(which nslookup) localhost 2>&1 | grep -qF "(null)"]] ) ~= 0) +has_ipv6 = (NXFS.access("/proc/net/ipv6_route") and NXFS.access("/usr/sbin/ip6tables")) +has_ssl = (has_wgetssl or has_curlssl or (has_fetch and has_fetchssl)) +has_proxy = (has_wgetssl or has_curlpxy or has_fetch or has_bbwget) +has_forceip = (has_wgetssl or has_curl or has_fetch) -- only really needed for transfer +has_dnsserver = (has_bindhost or has_hostip or has_nslookup) +has_bindnet = (has_wgetssl or has_curl) +has_cacerts = _check_certs() + +-- function to calculate seconds from given interval and unit +function calc_seconds(interval, unit) + if not tonumber(interval) then + return nil + elseif unit == "days" then + return (tonumber(interval) * 86400) -- 60 sec * 60 min * 24 h + elseif unit == "hours" then + return (tonumber(interval) * 3600) -- 60 sec * 60 min + elseif unit == "minutes" then + return (tonumber(interval) * 60) -- 60 sec + elseif unit == "seconds" then + return tonumber(interval) + else + return nil + end +end + +-- convert epoch date to given format +function epoch2date(epoch, format) + if not format or #format < 2 then + local uci = UCI.cursor() + format = uci:get("ddns", "global", "ddns_dateformat") or "%F %R" + uci:unload("ddns") + end + format = format:gsub("%%n", "
      ") -- replace newline + format = format:gsub("%%t", " ") -- replace tab + return os.date(format, epoch) +end + +-- read lastupdate from [section].update file +function get_lastupd(section) + local uci = UCI.cursor() + local rdir = uci:get("ddns", "global", "ddns_rundir") or "/var/run/ddns" + local etime = tonumber(NXFS.readfile("%s/%s.update" % { rdir, section } ) or 0 ) + uci:unload("ddns") + return etime +end + +-- read PID from run file and verify if still running +function get_pid(section) + local uci = UCI.cursor() + local rdir = uci:get("ddns", "global", "ddns_rundir") or "/var/run/ddns" + local pid = tonumber(NXFS.readfile("%s/%s.pid" % { rdir, section } ) or 0 ) + if pid > 0 and not NX.kill(pid, 0) then + pid = 0 + end + uci:unload("ddns") + return pid +end + +-- replacement of build-in read of UCI option +-- modified AbstractValue.cfgvalue(self, section) from cbi.lua +-- needed to read from other option then current value definition +function read_value(self, section, option) + local value + if self.tag_error[section] then + value = self:formvalue(section) + else + value = self.map:get(section, option) + end + + if not value then + return nil + elseif not self.cast or self.cast == type(value) then + return value + elseif self.cast == "string" then + if type(value) == "table" then + return value[1] + end + elseif self.cast == "table" then + return { value } + end +end + +-- replacement of build-in parse of "Value" +-- modified AbstractValue.parse(self, section, novld) from cbi.lua +-- validate is called if rmempty/optional true or false +-- before write check if forcewrite, value eq default, and more +function value_parse(self, section, novld) + local fvalue = self:formvalue(section) + local fexist = ( fvalue and (#fvalue > 0) ) -- not "nil" and "not empty" + local cvalue = self:cfgvalue(section) + local rm_opt = ( self.rmempty or self.optional ) + local eq_cfg -- flag: equal cfgvalue + + -- If favlue and cvalue are both tables and have the same content + -- make them identical + if type(fvalue) == "table" and type(cvalue) == "table" then + eq_cfg = (#fvalue == #cvalue) + if eq_cfg then + for i=1, #fvalue do + if cvalue[i] ~= fvalue[i] then + eq_cfg = false + end + end + end + if eq_cfg then + fvalue = cvalue + end + end + + -- removed parameter "section" from function call because used/accepted nowhere + -- also removed call to function "transfer" + local vvalue, errtxt = self:validate(fvalue) + + -- error handling; validate return "nil" + if not vvalue then + if novld then -- and "novld" set + return -- then exit without raising an error + end + + if fexist then -- and there is a formvalue + self:add_error(section, "invalid", errtxt or self.title .. ": invalid") + return -- so data are invalid + elseif not rm_opt then -- and empty formvalue but NOT (rmempty or optional) set + self:add_error(section, "missing", errtxt or self.title .. ": missing") + return -- so data is missing + elseif errtxt then + self:add_error(section, "invalid", errtxt) + return + end +-- error ("\n option: " .. self.option .. +-- "\n fvalue: " .. tostring(fvalue) .. +-- "\n fexist: " .. tostring(fexist) .. +-- "\n cvalue: " .. tostring(cvalue) .. +-- "\n vvalue: " .. tostring(vvalue) .. +-- "\n vexist: " .. tostring(vexist) .. +-- "\n rm_opt: " .. tostring(rm_opt) .. +-- "\n eq_cfg: " .. tostring(eq_cfg) .. +-- "\n eq_def: " .. tostring(eq_def) .. +-- "\n novld : " .. tostring(novld) .. +-- "\n errtxt: " .. tostring(errtxt) ) + end + + -- lets continue with value returned from validate + eq_cfg = ( vvalue == cvalue ) -- update equal_config flag + local vexist = ( vvalue and (#vvalue > 0) ) and true or false -- not "nil" and "not empty" + local eq_def = ( vvalue == self.default ) -- equal_default flag + + -- (rmempty or optional) and (no data or equal_default) + if rm_opt and (not vexist or eq_def) then + if self:remove(section) then -- remove data from UCI + self.section.changed = true -- and push events + end + return + end + + -- not forcewrite and no changes, so nothing to write + if not self.forcewrite and eq_cfg then + return + end + + -- we should have a valid value here + assert (vvalue, "\n option: " .. self.option .. + "\n fvalue: " .. tostring(fvalue) .. + "\n fexist: " .. tostring(fexist) .. + "\n cvalue: " .. tostring(cvalue) .. + "\n vvalue: " .. tostring(vvalue) .. + "\n vexist: " .. tostring(vexist) .. + "\n rm_opt: " .. tostring(rm_opt) .. + "\n eq_cfg: " .. tostring(eq_cfg) .. + "\n eq_def: " .. tostring(eq_def) .. + "\n errtxt: " .. tostring(errtxt) ) + + -- write data to UCI; raise event only on changes + if self:write(section, vvalue) and not eq_cfg then + self.section.changed = true + end +end + +----------------------------------------------------------------------------- +-- copied from https://svn.nmap.org/nmap/nselib/url.lua +-- @author Diego Nehab +-- @author Eddie Bell +--[[ + URI parsing, composition and relative URL resolution + LuaSocket toolkit. + Author: Diego Nehab + RCS ID: $Id: url.lua,v 1.37 2005/11/22 08:33:29 diego Exp $ + parse_query and build_query added For nmap (Eddie Bell ) +]]-- +--- +-- Parses a URL and returns a table with all its parts according to RFC 2396. +-- +-- The following grammar describes the names given to the URL parts. +-- +-- ::= :///;?# +-- ::= @: +-- ::= [:] +-- :: = {/} +-- +-- +-- The leading / in / is considered part of +-- . +-- @param url URL of request. +-- @param default Table with default values for each field. +-- @return A table with the following fields, where RFC naming conventions have +-- been preserved: +-- scheme, authority, userinfo, +-- user, password, host, +-- port, path, params, +-- query, and fragment. +----------------------------------------------------------------------------- +function parse_url(url) --, default) + -- initialize default parameters + local parsed = {} +-- for i,v in base.pairs(default or parsed) do +-- parsed[i] = v +-- end + + -- remove whitespace +-- url = string.gsub(url, "%s", "") + -- get fragment + url = string.gsub(url, "#(.*)$", + function(f) + parsed.fragment = f + return "" + end) + -- get scheme. Lower-case according to RFC 3986 section 3.1. + url = string.gsub(url, "^([%w][%w%+%-%.]*)%:", + function(s) + parsed.scheme = string.lower(s); + return "" + end) + -- get authority + url = string.gsub(url, "^//([^/]*)", + function(n) + parsed.authority = n + return "" + end) + -- get query stringing + url = string.gsub(url, "%?(.*)", + function(q) + parsed.query = q + return "" + end) + -- get params + url = string.gsub(url, "%;(.*)", + function(p) + parsed.params = p + return "" + end) + -- path is whatever was left + parsed.path = url + + local authority = parsed.authority + if not authority then + return parsed + end + authority = string.gsub(authority,"^([^@]*)@", + function(u) + parsed.userinfo = u; + return "" + end) + authority = string.gsub(authority, ":([0-9]*)$", + function(p) + if p ~= "" then + parsed.port = p + end; + return "" + end) + if authority ~= "" then + parsed.host = authority + end + + local userinfo = parsed.userinfo + if not userinfo then + return parsed + end + userinfo = string.gsub(userinfo, ":([^:]*)$", + function(p) + parsed.password = p; + return "" + end) + parsed.user = userinfo + return parsed +end diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/admin_status/index/ddns.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/admin_status/index/ddns.htm new file mode 100644 index 0000000..9791065 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/admin_status/index/ddns.htm @@ -0,0 +1 @@ +<%+ddns/system_status%> diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_logview.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_logview.htm new file mode 100644 index 0000000..fd1d5be --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_logview.htm @@ -0,0 +1,56 @@ + + + + +<%+cbi/valueheader%> + +
      + +<% +-- one button on top, one at the buttom +%> + /> + +

      + +<% +-- set a readable style taken from openwrt theme for textarea#syslog +-- in openwrt theme there are problems with a width of 100 so we check for theme and set to lower value +%> + +

      + +<% +-- one button on top, one at the buttom +%> + /> + +<%+cbi/valuefooter%> + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_lvalue.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_lvalue.htm new file mode 100644 index 0000000..b69d780 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_lvalue.htm @@ -0,0 +1,23 @@ + + + +  +<% if self.widget == "select" then %> + +<% elseif self.widget == "radio" then + local c = 0 + for i, key in pairs(self.keylist) do + c = c + 1 +%> + /> + > + ><%=self.vallist[i]%> +<% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %> <% else %>
      <% end %> +<% end end %> +<% end %> +<%+cbi/valuefooter%> + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_value.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_value.htm new file mode 100644 index 0000000..cbe76ab --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/detail_value.htm @@ -0,0 +1,9 @@ + + +<%+cbi/valueheader%> + /> + + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/global_value.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/global_value.htm new file mode 100644 index 0000000..23ec059 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/global_value.htm @@ -0,0 +1,34 @@ + + +<%+cbi/valueheader%> + + + +/> +
      +
      + <%:help%><%=self.description%> +
      + <%:Current setting%>: <%=self.date_string%> +
      +
      + + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_doubleline.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_doubleline.htm new file mode 100644 index 0000000..1d1b4be --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_doubleline.htm @@ -0,0 +1,10 @@ + + +<%+cbi/valueheader%> + +<%=self:set_one(section)%> +
      +<%=self:set_two(section)%> + +<%+cbi/valuefooter%> + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_enabled.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_enabled.htm new file mode 100644 index 0000000..2efc125 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_enabled.htm @@ -0,0 +1,16 @@ + + +<%+cbi/valueheader%> + + /> + + /> +> + +<%+cbi/valuefooter%> + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_startstop.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_startstop.htm new file mode 100644 index 0000000..327028c --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_startstop.htm @@ -0,0 +1,17 @@ + + +<%+cbi/valueheader%> + +<% if self:cfgvalue(section) ~= false then +-- We need to garantie that function cfgvalue run first to set missing parameters +%> + + + " style="font-size: 100%;" type="button" onclick="onclick_startstop(this.id)" + <%= + attr("name", section) .. attr("id", cbid) .. attr("value", self.inputtitle) .. ifattr(self.disabled, "disabled") + %> /> +<% end %> + +<%+cbi/valuefooter%> + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_status.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_status.htm new file mode 100644 index 0000000..b409ed0 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/overview_status.htm @@ -0,0 +1,180 @@ + + + + + + diff --git a/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/system_status.htm b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/system_status.htm new file mode 100644 index 0000000..5bdcb03 --- /dev/null +++ b/rooter/0optionalapps/luci-app-rooterddns/files/usr/lib/lua/luci/view/ddns/system_status.htm @@ -0,0 +1,144 @@ + + + + +
      + <%:Dynamic DNS%> + + + + + + + + + + + + +
      <%:Configuration%><%:Next Update%><%:Lookup Hostname%><%:Registered IP%><%:Network%>

      <%:Collecting data...%>
      +
      + diff --git a/rooter/0optionalapps/luci-app-rootervpn/files/usr/lib/lua/luci/view/easyrsa/easyrsa.htm b/rooter/0optionalapps/luci-app-rootervpn/files/usr/lib/lua/luci/view/easyrsa/easyrsa.htm index 998a866..25fe654 100644 --- a/rooter/0optionalapps/luci-app-rootervpn/files/usr/lib/lua/luci/view/easyrsa/easyrsa.htm +++ b/rooter/0optionalapps/luci-app-rootervpn/files/usr/lib/lua/luci/view/easyrsa/easyrsa.htm @@ -46,22 +46,22 @@ if (parseInt(status) > 1) { indx = 1; - select.options[select.options.length] = new Option("<%:Generating RSA Private Server key%>", indx); + select.options[select.options.length] = new Option("Generating RSA Private Server key", indx); } if (parseInt(status) > 2) { indx = 2; - select.options[select.options.length] = new Option("<%:Generating RSA Private Client key%>", indx); + select.options[select.options.length] = new Option("Generating RSA Private Client key", indx); } if (parseInt(status) > 3) { indx = 3; - select.options[select.options.length] = new Option("<%:Create the Diffie-Hellman parameters%>", indx); + select.options[select.options.length] = new Option("Create the Diffie-Hellman parameters", indx); } if (parseInt(status) > 4) { indx = 4; - select.options[select.options.length] = new Option("<%:Finished%>", indx); + select.options[select.options.length] = new Option("Finished", indx); } if (parseInt(status) != 0) { @@ -102,7 +102,7 @@ genrate = "1"; clearListBox("status"); select = document.getElementById("status"); - select.options[select.options.length] = new Option("<%:Starting Key Generation Process%>", 0); + select.options[select.options.length] = new Option("Starting Key Generation Process", 0); XHR.get('<%=luci.dispatcher.build_url("admin", "vpn", "rsagenerate")%>', null, function(x, rv) diff --git a/rooter/0optionalapps/nft-qos/Makefile b/rooter/0optionalapps/nft-qos/Makefile new file mode 100644 index 0000000..78e0ec2 --- /dev/null +++ b/rooter/0optionalapps/nft-qos/Makefile @@ -0,0 +1,59 @@ +# +# Copyright (C) 2018 rosysong@rosinson.com +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=nft-qos +PKG_VERSION:=1.0.6 +PKG_RELEASE:=1 +PKG_LICENSE:=GPL-2.0 + +PKG_MAINTAINER:=Rosy Song + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/nft-qos + SECTION:=utils + CATEGORY:=Base system + DEPENDS:=+nftables +kmod-nft-netdev +kmod-nft-bridge + TITLE:=QoS scripts over nftables + PKGARCH:=all +endef + +define Package/nft-qos/description + This package provides implementation for qos over nftables. + Currently, static/dynamic qos and traffic shaping are supported. +endef + +define Package/nft-qos/conffiles +/etc/config/nft-qos +endef + +define Build/Prepare +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/nft-qos/install + $(INSTALL_DIR) $(1)/lib/nft-qos + $(INSTALL_DATA) ./files/lib/* $(1)/lib/nft-qos/ + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_CONF) ./files/nft-qos.config $(1)/etc/config/nft-qos + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/nft-qos.init $(1)/etc/init.d/nft-qos + $(INSTALL_DIR) $(1)/etc/hotplug.d/dhcp + $(INSTALL_BIN) ./files/nft-qos-monitor.hotplug $(1)/etc/hotplug.d/dhcp/00-nft-qos-monitor + $(INSTALL_BIN) ./files/nft-qos-dynamic.hotplug $(1)/etc/hotplug.d/dhcp/01-nft-qos-dynamic +endef + +$(eval $(call BuildPackage,nft-qos)) diff --git a/rooter/0optionalapps/nft-qos/files/lib/core.sh b/rooter/0optionalapps/nft-qos/files/lib/core.sh new file mode 100644 index 0000000..d3c9d64 --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/lib/core.sh @@ -0,0 +1,93 @@ +#!/bin/sh +# +# Copyright (C) 2018 rosysong@rosinson.com +# + +# for uci_validate_section() +. /lib/functions/procd.sh + +NFT_QOS_HAS_BRIDGE= +NFT_QOS_INET_FAMILY=ip +NFT_QOS_SCRIPT_TEXT= +NFT_QOS_SCRIPT_FILE=/tmp/qos.nft + +qosdef_appendx() { # + NFT_QOS_SCRIPT_TEXT="$NFT_QOS_SCRIPT_TEXT""$1" +} + +qosdef_append_chain_def() { # + qosdef_appendx "\t\ttype $1 hook $2 priority $3; policy $4;\n" +} + +qosdef_append_chain_ingress() { # + qosdef_appendx "\t\ttype $1 hook ingress device $2 priority $3; policy $4;\n" +} + +# qosdef_append_rule_{MATCH}_{STATEMENT} +qosdef_append_rule_ip_limit() { # + local ipaddr=$1 + local operator=$2 + local unit=$3 + local rate=$4 + + qosdef_appendx \ + "\t\tip $operator $ipaddr limit rate over $rate $unit/second drop\n" +} + +# qosdef_append_rule_{MATCH}_{POLICY} +qosdef_append_rule_ip_policy() { # + qosdef_appendx "\t\tip $1 $2 $3\n" +} + +_handle_limit_whitelist() { # + local ipaddr=$1 + local operator + + [ -z "$ipaddr" ] && return + + case "$2" in + download) operator="daddr";; + upload) operator="saddr";; + esac + + qosdef_append_rule_ip_policy $operator $ipaddr accept +} + +qosdef_append_rule_limit_whitelist() { # + config_list_foreach default limit_whitelist _handle_limit_whitelist $1 +} + +qosdef_flush_table() { # + nft flush table $1 $2 2>/dev/null +} + +qosdef_remove_table() { #
      + nft delete table $1 $2 2>/dev/null +} + +qosdef_init_header() { # add header for nft script + qosdef_appendx "#!/usr/sbin/nft -f\n" + qosdef_appendx "# Copyright (C) 2018 rosysong@rosinson.com\n" + qosdef_appendx "#\n\n" +} + +qosdef_init_env() { + # check interface type of lan + local lt="$(uci_get "network.lan.type")" + [ "$lt" = "bridge" ] && export NFT_QOS_HAS_BRIDGE="y" + + # check if ipv6 support + [ -e /proc/sys/net/ipv6 ] && export NFT_QOS_INET_FAMILY="inet" +} + +qosdef_clean_cache() { + rm -f $NFT_QOS_SCRIPT_FILE +} + +qosdef_init_done() { + echo -e $NFT_QOS_SCRIPT_TEXT > $NFT_QOS_SCRIPT_FILE 2>/dev/null +} + +qosdef_start() { + nft -f $NFT_QOS_SCRIPT_FILE 2>/dev/null +} diff --git a/rooter/0optionalapps/nft-qos/files/lib/dynamic.sh b/rooter/0optionalapps/nft-qos/files/lib/dynamic.sh new file mode 100644 index 0000000..207daca --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/lib/dynamic.sh @@ -0,0 +1,90 @@ +#!/bin/sh +# +# Copyright (C) 2018 rosysong@rosinson.com +# + +. /lib/nft-qos/core.sh + +qosdef_validate_dynamic() { + uci_load_validate nft-qos default "$1" "$2" \ + 'limit_enable:bool:0' \ + 'limit_type:maxlength(8)' \ + 'dynamic_bw_up:uinteger:100' \ + 'dynamic_bw_down:uinteger:100' +} + +# return average rate for dhcp leases +qosdef_dynamic_rate() { # + local c=0 c6=0 + + [ ! -e /tmp/dhcp.leases -a \ + ! -e /var/dhcp6.leases ] && return + + [ -e /tmp/dhcp.leases ] && \ + c=$(wc -l < /tmp/dhcp.leases 2>/dev/null) + [ -e /var/dhcp6.leases ] && \ + c6=$(wc -l < /var/dhcp6.leases 2>/dev/null) + [ $c -eq 0 -a $c6 -eq 0 ] && \ + { echo 12500; return; } + + echo $(($1 / ($c + $c6))) +} + +qosdef_append_chain_dym() { # + local cidr cidr6 + local operator rate + local hook=$1 name=$2 bandwidth=$3 + + config_get cidr default 'dynamic_cidr' + config_get cidr6 default 'dynamic_cidr6' + + [ -z "$cidr" -a -z "$cidr6" ] && return + + case "$2" in + download) operator=daddr;; + upload) operator=saddr;; + esac + + rate=$(qosdef_dynamic_rate $bandwidth) + + qosdef_appendx "\tchain $name {\n" + qosdef_append_chain_def filter $hook 0 accept + qosdef_append_rule_limit_whitelist $name + [ -n "$cidr" ] && \ + qosdef_append_rule_ip_limit $cidr $operator kbytes $rate + [ -n "$cidr6" ] && \ + qosdef_append_rule_ip_limit $cidr6 $operator kbytes $rate + qosdef_appendx "\t}\n" +} + +qosdef_flush_dynamic() { + qosdef_flush_table "$NFT_QOS_INET_FAMILY" nft-qos-dynamic +} + +# init dynamic qos +qosdef_init_dynamic() { + local hook_ul="prerouting" hook_dl="postrouting" + + [ "$2" = 0 ] || { + logger -t nft-qos-dynamic "validation failed" + return 1 + } + + [ $limit_enable -eq 0 -o \ + "$limit_type" = "static" ] && return 1 + + # Transfer mbits/s to mbytes/s + # e.g. 100,000 kbits == 12,500 kbytes + dynamic_bw_up=$(($dynamic_bw_up * 1000 / 8)) + dynamic_bw_down=$(($dynamic_bw_down * 1000 / 8)) + + [ -z "$NFT_QOS_HAS_BRIDGE" ] && { + hook_ul="postrouting" + hook_dl="prerouting" + } + + qosdef_appendx "table $NFT_QOS_INET_FAMILY nft-qos-dynamic {\n" + qosdef_append_chain_dym $hook_ul upload $dynamic_bw_up + qosdef_append_chain_dym $hook_dl download $dynamic_bw_down + qosdef_appendx "}\n" +} diff --git a/rooter/0optionalapps/nft-qos/files/lib/monitor.sh b/rooter/0optionalapps/nft-qos/files/lib/monitor.sh new file mode 100644 index 0000000..54de88e --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/lib/monitor.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Copyright (C) 2018 rosysong@rosinson.com +# + +. /lib/nft-qos/core.sh + +qosdef_monitor_get_ip_handle() { # + echo $(nft list chain $1 nft-qos-monitor $2 -a 2>/dev/null | grep $3 | awk '{print $11}') +} + +qosdef_monitor_add() { # + handle_dl=$(qosdef_monitor_get_ip_handle $NFT_QOS_INET_FAMILY download $2) + [ -z "$handle_dl" ] && nft add rule $NFT_QOS_INET_FAMILY nft-qos-monitor download ip daddr $2 counter + handle_ul=$(qosdef_monitor_get_ip_handle $NFT_QOS_INET_FAMILY upload $2) + [ -z "$handle_ul" ] && nft add rule $NFT_QOS_INET_FAMILY nft-qos-monitor upload ip saddr $2 counter +} + +qosdef_monitor_del() { # + local handle_dl handle_ul + handle_dl=$(qosdef_monitor_get_ip_handle $NFT_QOS_INET_FAMILY download $2) + handle_ul=$(qosdef_monitor_get_ip_handle $NFT_QOS_INET_FAMILY upload $2) + [ -n "$handle_dl" ] && nft delete handle $handle_dl + [ -n "$handle_ul" ] && nft delete handle $handle_ul +} + +# init qos monitor +qosdef_init_monitor() { + local hook_ul="prerouting" hook_dl="postrouting" + + [ -z "$NFT_QOS_HAS_BRIDGE" ] && { + hook_ul="postrouting" + hook_dl="prerouting" + } + + nft add table $NFT_QOS_INET_FAMILY nft-qos-monitor + nft add chain $NFT_QOS_INET_FAMILY nft-qos-monitor upload { type filter hook $hook_ul priority 0\; } + nft add chain $NFT_QOS_INET_FAMILY nft-qos-monitor download { type filter hook $hook_dl priority 0\; } +} diff --git a/rooter/0optionalapps/nft-qos/files/lib/priority.sh b/rooter/0optionalapps/nft-qos/files/lib/priority.sh new file mode 100644 index 0000000..081b13f --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/lib/priority.sh @@ -0,0 +1,93 @@ +#!/bin/sh +# +# Copyright (C) 2018 rosysong@rosinson.com +# + +. /lib/functions/network.sh +. /lib/nft-qos/core.sh + +P1=""; P2=""; P3=""; P4=""; P5=""; P6=""; +P7=""; P8=""; P9=""; P10=""; P11=""; + +qosdef_validate_priority() { + uci_load_validate nft-qos default "$1" "$2" \ + 'priority_enable:bool:0' \ + 'priority_netdev:maxlength(8)' +} + +_qosdef_handle_protox() { # + case "$1" in + -400) P1="$P1""$2";; + -300) P2="$P2""$2";; + -225) P3="$P3""$2";; + -200) P4="$P4""$2";; + -150) P5="$P5""$2";; + -100) P6="$P6""$2";; + 0) P7="$P7""$2";; + 50) P8="$P8""$2";; + 100) P9="$P9""$2";; + 225) P10="$P10""$2";; + 300) P11="$P11""$2";; + esac +} + +qosdef_handle_protox() { #
      + local proto prio srv + + config_get proto $1 'protocol' + config_get prio $1 'priority' + config_get srv $1 'service' + + [ -z "$proto" -o \ + -z "$prio" -o \ + -z "$srv" ] && return + + _qosdef_handle_protox $prio \ + "\t\t$proto dport { $srv } accept\n" +} + +qosdef_append_rule_protox() { #
      + config_foreach qosdef_handle_protox $1 + qosdef_appendx \ + "${P1}${P2}${P3}${P4}${P5}${P6}${P7}${P8}${P9}${P10}${P11}" +} + +qosdef_append_chain_priority() { #
      + local name=$1 device=$3 + + qosdef_appendx "\tchain $name {\n" + qosdef_append_chain_ingress filter $device 0 accept + qosdef_append_rule_protox $2 + qosdef_appendx "\t}\n" +} + +qosdef_remove_priority() { + qosdef_remove_table netdev nft-qos-priority +} + +# init traffic priority +qosdef_init_priority() { + local ifname="br-lan" + + [ "$2" = 0 ] || { + logger -t nft-qos-priority "validation failed" + return 1 + } + + [ $priority_enable -eq 0 ] && return 1 + + case "$priority_netdev" in + lan) [ "$(uci_get network.lan.type)" != "bridge" ] && { + network_get_device ifname "$priority_netdev" || \ + ifname="$(uci_get network.lan.ifname)" + } + ;; + wan*) network_get_device ifname "$priority_netdev" || \ + ifname="$(uci_get network.$priority_netdev.ifname)" + ;; + esac + + qosdef_appendx "table netdev nft-qos-priority {\n" + qosdef_append_chain_priority filter priority $ifname + qosdef_appendx "}\n" +} diff --git a/rooter/0optionalapps/nft-qos/files/lib/static.sh b/rooter/0optionalapps/nft-qos/files/lib/static.sh new file mode 100644 index 0000000..051c0ba --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/lib/static.sh @@ -0,0 +1,74 @@ +#!/bin/sh +# +# Copyright (C) 2018 rosysong@rosinson.com +# + +. /lib/nft-qos/core.sh + +qosdef_validate_static() { + uci_load_validate nft-qos default "$1" "$2" \ + 'limit_enable:bool:0' \ + 'limit_type:maxlength(8)' \ + 'static_unit_dl:string:kbytes' \ + 'static_unit_ul:string:kbytes' \ + 'static_rate_dl:uinteger:50' \ + 'static_rate_ul:uinteger:50' +} + +# append rule for static qos +qosdef_append_rule_sta() { #
      + local ipaddr unit rate + local operator=$2 + + config_get ipaddr $1 ipaddr + config_get unit $1 unit $3 + config_get rate $1 rate $4 + + [ -z "$ipaddr" ] && return + + qosdef_append_rule_ip_limit $ipaddr $operator $unit $rate +} + +# append chain for static qos +qosdef_append_chain_sta() { #
      + local hook=$1 name=$2 + local config=$3 operator + + case "$name" in + download) operator="daddr";; + upload) operator="saddr";; + esac + + qosdef_appendx "\tchain $name {\n" + qosdef_append_chain_def filter $hook 0 accept + qosdef_append_rule_limit_whitelist $name + config_foreach qosdef_append_rule_sta $config $operator $4 $5 + qosdef_appendx "\t}\n" +} + +qosdef_flush_static() { + qosdef_flush_table "$NFT_QOS_INET_FAMILY" nft-qos-static +} + +# static limit rate init +qosdef_init_static() { + local hook_ul="prerouting" hook_dl="postrouting" + + [ "$2" = 0 ] || { + logger -t nft-qos-static "validation failed" + return 1 + } + + [ $limit_enable -eq 0 -o \ + $limit_type = "dynamic" ] && return 1 + + [ -z "$NFT_QOS_HAS_BRIDGE" ] && { + hook_ul="postrouting" + hook_dl="prerouting" + } + + qosdef_appendx "table $NFT_QOS_INET_FAMILY nft-qos-static {\n" + qosdef_append_chain_sta $hook_ul upload upload $static_unit_ul $static_rate_ul + qosdef_append_chain_sta $hook_dl download download $static_unit_dl $static_rate_dl + qosdef_appendx "}\n" +} diff --git a/rooter/0optionalapps/nft-qos/files/nft-qos-dynamic.hotplug b/rooter/0optionalapps/nft-qos/files/nft-qos-dynamic.hotplug new file mode 100644 index 0000000..b81fa94 --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/nft-qos-dynamic.hotplug @@ -0,0 +1,36 @@ +#!/bin/sh +# +# Copyright 2018 rosysong@rosinson.com +# + +export initscript="nft-qos-dynamic" + +. /lib/functions.sh +. /lib/nft-qos/core.sh +. /lib/nft-qos/dynamic.sh + +NFT_QOS_DYNAMIC_ON= + +qosdef_check_if_dynamic() { + [ $limit_enable -eq 1 -a \ + "$limit_type" = "dynamic" ] && \ + NFT_QOS_DYNAMIC_ON="y" +} + + +logger -t nft-qos-dynamic "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME" + +case "$ACTION" in + add | update | remove) + qosdef_validate_dynamic default qosdef_check_if_dynamic + [ -z "$NFT_QOS_DYNAMIC_ON" ] && return + + qosdef_init_env + qosdef_flush_dynamic + + qosdef_init_header + qosdef_validate_dynamic default qosdef_init_dynamic + qosdef_init_done + qosdef_start + ;; +esac diff --git a/rooter/0optionalapps/nft-qos/files/nft-qos-monitor.hotplug b/rooter/0optionalapps/nft-qos/files/nft-qos-monitor.hotplug new file mode 100644 index 0000000..5868bb1 --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/nft-qos-monitor.hotplug @@ -0,0 +1,23 @@ +#!/bin/sh +# +# Copyright 2018 rosysong@rosinson.com +# + +export initscript="nft-qos-monitor" + +. /lib/nft-qos/monitor.sh + +logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME" + +case "$ACTION" in + add | update) + qosdef_init_env + qosdef_init_monitor + qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME + ;; + remove) + qosdef_init_env + qosdef_init_monitor + qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME + ;; +esac diff --git a/rooter/0optionalapps/nft-qos/files/nft-qos.config b/rooter/0optionalapps/nft-qos/files/nft-qos.config new file mode 100644 index 0000000..82e3b39 --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/nft-qos.config @@ -0,0 +1,107 @@ +# +# Copyright (C) 2018 rosysong@rosinson.com +# +# This is the sample for nft-qos configuration file, +# which will generate a nftables script in /tmp/qos.nft +# + +# Getting Started +# Official site : +# https://netfilter.org/projects/nftables/index.html +# What is nftables : +# https://wiki.nftables.org/wiki-nftables/index.php/Main_Page +# + +# Basic Operations +# Configuring Tables : +# https://wiki.nftables.org/wiki-nftables/index.php/Configuring_tables +# Configuring Chains : +# https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains +# Configuring Rules : +# https://wiki.nftables.org/wiki-nftables/index.php/Simple_rule_management +# Quick Reference (recommended) : +# https://wiki.nftables.org/wiki-nftables/index.php/Quick_reference-nftables_in_10_minutes +# https://netfilter.org/projects/nftables/manpage.html +# + +config default default + # Enable Flag for limit rate + option limit_enable '1' + + # Options for enable Static QoS (rate limit) + option limit_type 'static' + # Options for Static QoS (rate limit) + option static_unit_dl 'kbytes' + option static_unit_ul 'kbytes' + option static_rate_dl '50' + option static_rate_ul '50' + + # Options for enable Dynamic QoS + # This option can not compatible with Static QoS + # option limit_type 'dynamic' + + # For Dynamic QoS Samples (unit of bandwidth is Mbps): + option dynamic_cidr '192.168.1.0/24' + option dynamic_cidr6 'AAAA:BBBB::1/64' + option dynamic_bw_up '100' + option dynamic_bw_down '100' + + # White list for static/dynamic limit + # list limit_whitelist '192.168.1.225' + # list limit_whitelist '192.168.1.0/24' + # list limit_whitelist 'ABCD:CDEF::1/64' + + # Options for Traffic Priority + option priority_enable '0' + option priority_netdev 'lan' + + +# +# For Static QoS Rate Limit Samples : +# +# For Download : +#config download +# option hostname 'My PC' +# option unit 'kbytes' +# option ipaddr '192.168.1.224' +# option rate '128' +# +# For Upload : +#config upload +# option hostname 'office-pc' +# option unit 'mbytes' +# option ipaddr 'ABCD:FFED::1/64' +# option rate '1024' +# +# +# Traffic Priority Samples : +# +# protocol : tcp, udp, udplite, sctp, dccp, tcp is default +# priority : integer between 1-11, 1 is default and the highest +# service : you can input a integer or service name, +# e.g. '22', '11-22', 'telnet', 'ssh, http, ftp', etc +# +#config priority +# option protocol 'tcp' +# option priority '-400' +# option service '23' +# option comment '?' +# +#config priority +# option protocol 'udp' +# option priority '-400' +# option service 'https' +# option comment '?' +# +#config priority +# option protocol 'dccp' +# option priority '0' +# option service '22-35' +# option comment '?' +# +#config priority +# option protocol 'dccp' +# option priority '300' +# option service 'ftp,ssh,http' +# option comment '?' +# diff --git a/rooter/0optionalapps/nft-qos/files/nft-qos.init b/rooter/0optionalapps/nft-qos/files/nft-qos.init new file mode 100644 index 0000000..7a56ec7 --- /dev/null +++ b/rooter/0optionalapps/nft-qos/files/nft-qos.init @@ -0,0 +1,47 @@ +#!/bin/sh /etc/rc.common +# +# Copyright (C) 2018 rosysong@rosinson.com +# + +. /lib/nft-qos/core.sh +. /lib/nft-qos/monitor.sh +. /lib/nft-qos/dynamic.sh +. /lib/nft-qos/static.sh +. /lib/nft-qos/priority.sh + +START=99 +USE_PROCD=1 + +service_triggers() { + procd_add_reload_trigger nft-qos + + procd_open_validate + qosdef_validate_dynamic + qosdef_validate_static + qosdef_validate_priority + procd_close_validate +} + +start_service() { + config_load nft-qos + + qosdef_init_env + qosdef_flush_static + qosdef_flush_dynamic + qosdef_remove_priority + + qosdef_init_header + qosdef_init_monitor + qosdef_validate_dynamic default qosdef_init_dynamic + qosdef_validate_static default qosdef_init_static + qosdef_validate_priority default qosdef_init_priority + qosdef_init_done + qosdef_start +} + +stop_service() { + qosdef_flush_dynamic + qosdef_flush_static + qosdef_remove_priority + qosdef_clean_cache +} diff --git a/rooter/0optionalapps/pingtest/files/etc/config/ping b/rooter/0optionalapps/pingtest/files/etc/config/ping new file mode 100644 index 0000000..6fa2bfc --- /dev/null +++ b/rooter/0optionalapps/pingtest/files/etc/config/ping @@ -0,0 +1,6 @@ +config ping 'ping' + option enable '0' + option delay '40' + option conn '1' + option interval '20' + option type '1' \ No newline at end of file diff --git a/rooter/0routerspecfic/we826/files/etc/init.d/wd-init b/rooter/0optionalapps/pingtest/files/etc/init.d/pingtest similarity index 58% rename from rooter/0routerspecfic/we826/files/etc/init.d/wd-init rename to rooter/0optionalapps/pingtest/files/etc/init.d/pingtest index baf6d77..32cc726 100644 --- a/rooter/0routerspecfic/we826/files/etc/init.d/wd-init +++ b/rooter/0optionalapps/pingtest/files/etc/init.d/pingtest @@ -1,14 +1,14 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2013 OpenWrt.org -START=50 +START=99 USE_PROCD=1 log() { - logger -t "usb-modeswitch" "$@" + logger -t "pingtest" "$@" } start_service() { - /usr/lib/custom/watchdog.sh & + /usr/lib/custom/test_ping.sh & } diff --git a/rooter/0optionalapps/pingtest/files/usr/lib/lua/luci/model/cbi/ping.lua b/rooter/0optionalapps/pingtest/files/usr/lib/lua/luci/model/cbi/ping.lua index bb52017..caa3bf6 100644 --- a/rooter/0optionalapps/pingtest/files/usr/lib/lua/luci/model/cbi/ping.lua +++ b/rooter/0optionalapps/pingtest/files/usr/lib/lua/luci/model/cbi/ping.lua @@ -10,9 +10,9 @@ m = Map("ping", translate("Custom Ping Test"), translate("Enable/Disable Custom d = m:section(TypedSection, "ping", " ") d.anonymous = true -c1 = d:option(ListValue, "enable", translate("Ping Test Status : "), translate("Ping every 20 seconds and, if it fails, restart modem or reboot router")); -c1:value("0", translate("Disabled")) -c1:value("1", translate("Enabled")) +c1 = d:option(ListValue, "enable", "Ping Test Status : ", "Ping every 20 seconds and, if it fails, restart modem or reboot router"); +c1:value("0", "Disabled") +c1:value("1", "Enabled") c1.default=0 interval = d:option(Value, "interval", translate("Test Interval :"), translate("Number of seconds between testing the connection. Range is 20 to 120 secs.")); @@ -21,12 +21,12 @@ interval.optional=false; interval.datatype = 'range(20,120)'; interval.default="20"; -type = d:option(ListValue, "type", translate("Test Type :"), translate("Type of test - Page Retrieval or Ping")); -type:value("0", translate("Ping")) -type:value("1", translate("Page Retrieval")) +type = d:option(ListValue, "type", "Test Type :", "Type of test - Page Retrieval or Ping"); +type:value("0", "Ping") +type:value("1", "Page Retrieval") type.default=1 -d1 = d:option(ListValue, "delay", translate("Reconnection Delay"),translate("Delay in seconds after restarting modem before checking for connection")); +d1 = d:option(ListValue, "delay", "Reconnection Delay","Delay in seconds after restarting modem before checking for connection"); d1:value("40", "40 seconds") d1:value("45", "45 seconds") d1:value("50", "50 seconds") diff --git a/rooter/0optionalapps/qfirehose/src/firehose_protocol.c b/rooter/0optionalapps/qfirehose/src/firehose_protocol.c index 25c6ea1..7116cde 100644 --- a/rooter/0optionalapps/qfirehose/src/firehose_protocol.c +++ b/rooter/0optionalapps/qfirehose/src/firehose_protocol.c @@ -20,8 +20,9 @@ #define error_return() do {dbg_time("%s %s %d fail\n", __FILE__, __func__, __LINE__); return __LINE__; } while(0) int recv_sc600y_configure_num = 1; -extern int g_is_sc600y_chip; - +extern const char *q_device_type; +static int fh_recv_cmd_sk[2]; + extern unsigned q_erase_all_before_download; extern int update_transfer_bytes(long long bytes_cur); extern int show_progress(); @@ -41,12 +42,12 @@ struct fh_configure_cmd { struct fh_erase_cmd { const char *type; - uint32_t PAGES_PER_BLOCK; - uint32_t SECTOR_SIZE_IN_BYTES; - char label[32]; + //uint32_t PAGES_PER_BLOCK; + //uint32_t SECTOR_SIZE_IN_BYTES; + //char label[32]; uint32_t last_sector; uint32_t num_partition_sectors; - uint32_t physical_partition_number; + //uint32_t physical_partition_number; uint32_t start_sector; }; @@ -54,12 +55,12 @@ struct fh_program_cmd { const char *type; char *filename; uint32_t filesz; - uint32_t PAGES_PER_BLOCK; + //uint32_t PAGES_PER_BLOCK; uint32_t SECTOR_SIZE_IN_BYTES; - char label[32]; - uint32_t last_sector; + //char label[32]; + //uint32_t last_sector; uint32_t num_partition_sectors; - uint32_t physical_partition_number; + //uint32_t physical_partition_number; uint32_t start_sector; }; @@ -88,7 +89,6 @@ struct fh_cmd_header { struct fh_vendor_defines { const char *type; // "vendor" - char buffer[256]; }; struct fh_cmd { @@ -103,7 +103,7 @@ struct fh_cmd { struct fh_vendor_defines vdef; }; int part_upgrade; - char xml_original_data[300]; + char xml_original_data[512]; }; struct fh_data { @@ -111,8 +111,9 @@ struct fh_data { const void *usb_handle; unsigned MaxPayloadSizeToTargetInBytes; unsigned fh_cmd_count; + unsigned fh_patch_count; unsigned ZlpAwareHost; - struct fh_cmd fh_cmd_table[128]; //AG525 have more than 64 partition + struct fh_cmd fh_cmd_table[256]; //AG525 have more than 64 partition unsigned xml_tx_size; unsigned xml_rx_size; @@ -120,9 +121,7 @@ struct fh_data { char xml_rx_buf[1024]; }; -static const char * fh_xml_get_value(const char *xml_line, const char *key) { - static char value[64]; - +static const char * fh_xml_find_value(const char *xml_line, const char *key, char **ppend) { char *pchar = strstr(xml_line, key); char *pend; @@ -143,45 +142,69 @@ static const char * fh_xml_get_value(const char *xml_line, const char *key) { dbg_time("%s: no end %s in %s\n", __func__, "\"", xml_line); return NULL; } + + *ppend = pend; + return pchar; +} + +static const char * fh_xml_get_value(const char *xml_line, const char *key) { + static char value[64]; + char *pend; + const char *pchar = fh_xml_find_value(xml_line, key, &pend); + + if (!pchar) { + return NULL; + } strncpy(value, pchar, pend - pchar); value[pend - pchar] = '\0'; - //dbg_time("%s=%s\n", key, value); - return value; } +static void fh_xml_set_value(char *xml_line, const char *key, unsigned value) { + char *pend; + const char *pchar = fh_xml_find_value(xml_line, key, &pend); + char *tmp_line = strdup(xml_line); + char value_str[32]; + + if (!pchar || !tmp_line) { + return; + } + + snprintf(value_str, sizeof(value_str), "%u", value); + tmp_line[pchar - xml_line] = '\0'; + strcat(tmp_line, value_str); + strcat(tmp_line, pend); + + strcpy(xml_line, tmp_line); + free(tmp_line); +} + static int fh_parse_xml_line(const char *xml_line, struct fh_cmd *fh_cmd) { const char *pchar = NULL; - char *pret; + size_t len = strlen(xml_line); memset(fh_cmd, 0, sizeof( struct fh_cmd)); + strcpy(fh_cmd->xml_original_data, xml_line); + if (fh_cmd->xml_original_data[len - 1] == '\n') + fh_cmd->xml_original_data[len - 1] = '\0'; + if (strstr(xml_line, "vendor=\"quectel\"")) { fh_cmd->vdef.type = "vendor"; - snprintf(fh_cmd->vdef.buffer, sizeof(fh_cmd->vdef.buffer), "%.255s", xml_line); return 0; } else if (!strncmp(xml_line, "erase.type = "erase"; - if ((pchar = fh_xml_get_value(xml_line, "PAGES_PER_BLOCK"))) - fh_cmd->erase.PAGES_PER_BLOCK = atoi(pchar); - if ((pchar = fh_xml_get_value(xml_line, "SECTOR_SIZE_IN_BYTES"))) - fh_cmd->erase.SECTOR_SIZE_IN_BYTES = atoi(pchar); if (strstr(xml_line, "last_sector")) { - if ((pchar = fh_xml_get_value(xml_line, "last_sector"))) + if ((pchar = fh_xml_get_value(xml_line, "last_sector"))) fh_cmd->erase.last_sector = atoi(pchar); - if (strstr(xml_line, "label")) { - if ((pchar = fh_xml_get_value(xml_line, "label"))) - strcpy(fh_cmd->erase.label, pchar); - } } - if ((pchar = fh_xml_get_value(xml_line, "num_partition_sectors"))) - fh_cmd->erase.num_partition_sectors = strtoul(pchar, &pret, 10); - if ((pchar = fh_xml_get_value(xml_line, "physical_partition_number"))) - fh_cmd->erase.physical_partition_number = atoi(pchar); if ((pchar = fh_xml_get_value(xml_line, "start_sector"))) fh_cmd->erase.start_sector = atoi(pchar); + if ((pchar = fh_xml_get_value(xml_line, "num_partition_sectors"))) + fh_cmd->erase.num_partition_sectors = atoi(pchar); + return 0; } else if (!strncmp(xml_line, "program.PAGES_PER_BLOCK = atoi(pchar); - if ((pchar = fh_xml_get_value(xml_line, "SECTOR_SIZE_IN_BYTES"))) - fh_cmd->program.SECTOR_SIZE_IN_BYTES = atoi(pchar); - if (strstr(xml_line, "last_sector")) { - if ((pchar = fh_xml_get_value(xml_line, "last_sector"))) - fh_cmd->program.last_sector = atoi(pchar); - if (strstr(xml_line, "label")) { - if ((pchar = fh_xml_get_value(xml_line, "label"))) - strcpy(fh_cmd->program.label, pchar); - } - } - if ((pchar = fh_xml_get_value(xml_line, "num_partition_sectors"))) - fh_cmd->program.num_partition_sectors = atoi(pchar); - if ((pchar = fh_xml_get_value(xml_line, "physical_partition_number"))) - fh_cmd->program.physical_partition_number = atoi(pchar); - if ((pchar = fh_xml_get_value(xml_line, "start_sector"))) - fh_cmd->program.start_sector = atoi(pchar); - } - else - { - if ((pchar = fh_xml_get_value(xml_line, "start_sector"))) - fh_cmd->program.start_sector = atoi(pchar); - if ((pchar = fh_xml_get_value(xml_line, "num_partition_sectors"))) - fh_cmd->program.num_partition_sectors = atoi(pchar); - if ((pchar = fh_xml_get_value(xml_line, "SECTOR_SIZE_IN_BYTES"))) - fh_cmd->program.SECTOR_SIZE_IN_BYTES = atoi(pchar); - strcpy(fh_cmd->xml_original_data, xml_line); - } + } + if ((pchar = fh_xml_get_value(xml_line, "start_sector"))) + fh_cmd->program.start_sector = atoi(pchar); + if ((pchar = fh_xml_get_value(xml_line, "num_partition_sectors"))) + fh_cmd->program.num_partition_sectors = atoi(pchar); + if ((pchar = fh_xml_get_value(xml_line, "SECTOR_SIZE_IN_BYTES"))) + fh_cmd->program.SECTOR_SIZE_IN_BYTES = atoi(pchar); return 0; } else if (!strncmp(xml_line, "patch.type = "patch"; - if ((pchar = fh_xml_get_value(xml_line, "filename"))) - { - fh_cmd->patch.filename = strdup(pchar); - if(fh_cmd->patch.filename[0] == '\0' || strncasecmp(fh_cmd->patch.filename, "DISK",4)) - {//some fw version have blank program line, ignore it. - return -1; - } - } - strcpy(fh_cmd->xml_original_data, xml_line); - + pchar = fh_xml_get_value(xml_line, "filename"); + if (pchar && strcmp(pchar, "DISK")) + return -1; return 0; } else if (!strncmp(xml_line, "xml_tx_buf, fh_data->xml_tx_size, fp)) { char *xml_line = strstr(fh_data->xml_tx_buf, "<"); - - if (xml_line && strstr(xml_line, "")) { - if (strstr(xml_line, "/>") < strstr(xml_line, "") && strstr(xml_line, ""); + + if (c_end) { + /* + + + + */ + char *tmp = strstr(xml_line, "/>"); + if (tmp && (tmp < c_start || tmp > c_end)) { + memset(c_start, ' ', c_end - c_start + strlen("-->")); + goto __fh_parse_xml_line; + } + + continue; + } + else { + /* + + --> + */ + do { + if (fgets(fh_data->xml_tx_buf, fh_data->xml_tx_size, fp) == NULL) { break; }; + xml_line = fh_data->xml_tx_buf; + } while (!strstr(xml_line, "-->") && strstr(xml_line, "