mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fixdevelop
This commit is contained in:
parent
aeacaf914c
commit
753de38595
797 changed files with 70531 additions and 22374 deletions
|
@ -93,8 +93,8 @@ function add_interface(add_interface_ifname)
|
|||
ucic:set("qos","wan" .. i,"interface")
|
||||
ucic:set("qos","wan" .. i,"classgroup","Default")
|
||||
ucic:set("qos","wan" .. i,"enabled","0")
|
||||
ucic:set("qos","wan" .. i,"upload","4000")
|
||||
ucic:set("qos","wan" .. i,"download","100000")
|
||||
ucic:set("qos","wan" .. i,"upload","1000000")
|
||||
ucic:set("qos","wan" .. i,"download","1000000")
|
||||
ucic:save("qos")
|
||||
ucic:commit("qos")
|
||||
|
||||
|
@ -163,7 +163,7 @@ function set_interface(intf,proto,ipaddr,netmask,gateway,sqmenabled,downloadspee
|
|||
ucic:set("qos",intf,"interface")
|
||||
ucic:set("qos",intf,"classgroup","Default")
|
||||
ucic:set("qos",intf,"enabled","0")
|
||||
ucic:set("qos",intf,"upload","4000")
|
||||
ucic:set("qos",intf,"upload","100000")
|
||||
ucic:set("qos",intf,"download","100000")
|
||||
end
|
||||
|
||||
|
@ -1113,9 +1113,7 @@ function interfaces_status()
|
|||
mArray.openmptcprouter['model'] = sys.exec("ubus call system board | jsonfilter -q -e '@.model' 2>/dev/null | tr -d '\n'")
|
||||
local board_name = sys.exec("ubus call system board | jsonfilter -q -e '@.board_name' 2>/dev/null | tr -d '\n'")
|
||||
-- retrieve core temperature
|
||||
if board_name:match("^raspberrypi.*") then
|
||||
mArray.openmptcprouter["core_temp"] = sys.exec("cat /sys/class/thermal/thermal_zone0/temp 2>/dev/null"):match("%d+")
|
||||
end
|
||||
mArray.openmptcprouter["core_temp"] = sys.exec("cat /sys/class/thermal/thermal_zone0/temp 2>/dev/null"):match("%d+")
|
||||
mArray.openmptcprouter["loadavg"] = sys.exec("cat /proc/loadavg 2>/dev/null"):match("[%d%.]+ [%d%.]+ [%d%.]+")
|
||||
mArray.openmptcprouter["uptime"] = sys.exec("cat /proc/uptime 2>/dev/null"):match("[%d%.]+")
|
||||
|
||||
|
|
0
luci-app-openmptcprouter/root/usr/share/luci/menu.d/luci-app-openmptcprouter.json
Normal file → Executable file
0
luci-app-openmptcprouter/root/usr/share/luci/menu.d/luci-app-openmptcprouter.json
Normal file → Executable file
0
luci-app-openmptcprouter/root/usr/share/rpcd/acl.d/luci-app-openmptcprouter.json
Normal file → Executable file
0
luci-app-openmptcprouter/root/usr/share/rpcd/acl.d/luci-app-openmptcprouter.json
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue