diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 81d645613..d2d22d4e6 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -71,7 +71,7 @@ jobs:
path: /home/runner/work/omr/${{ matrix.OMR_TARGET }}/source/bin
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
name: Deploy - Create directory
- uses: fifsky/ssh-action@master
+ uses: ysurac/ssh-action@master
env:
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
@@ -85,7 +85,7 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
name: Deploy - Create directory
- uses: fifsky/ssh-action@master
+ uses: ysurac/ssh-action@master
env:
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
@@ -106,7 +106,7 @@ jobs:
mv ${OMR_TARGET}/source/bin ${GITHUB_WORKSPACE}/
- if: steps.branch_name.outputs.SOURCE_BRANCH == ''
name: Deploy - Upload via rsync
- uses: up9cloud/action-rsync@master
+ uses: ysurac/action-rsync@master
env:
ARGS: -av --delete-after
TARGET: /www/wwwroot/55860.com/bak/down/release/${{steps.branch_name.outputs.SOURCE_TAG}}/${{matrix.OMR_TARGET}}
@@ -121,7 +121,7 @@ jobs:
GITHUB_WORKSPACE: ${{ steps.branch_name.outputs.WORKSPACE }}
- if: steps.branch_name.outputs.SOURCE_BRANCH != ''
name: Deploy - Upload via rsync
- uses: up9cloud/action-rsync@master
+ uses: ysurac/action-rsync@master
env:
ARGS: -av --delete-after
TARGET: /www/wwwroot/55860.com/bak/down/${{ steps.branch_name.outputs.SOURCE_BRANCH }}/${{env.OMR_KERNEL}}/${{matrix.OMR_TARGET}}
diff --git a/bcm27xx-eeprom/Makefile b/bcm27xx-eeprom/Makefile
index 62766a62b..14f3d8ead 100644
--- a/bcm27xx-eeprom/Makefile
+++ b/bcm27xx-eeprom/Makefile
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bcm27xx-eeprom
-PKG_VERSION:=0512377e948552105741be10088772d2ecd8bf70
+PKG_VERSION:=1a099a5a9de4cbd71a68afaa6421fd3b9cf3ef2e
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/raspberrypi/rpi-eeprom/tar.gz/$(PKG_VERSION)?
-PKG_HASH:=6e02e40762f21d39d3585dbce66794fa7055a0d0440c133e0664fd77a96d70ee
+PKG_HASH:=c991a69fb92f60fb03cb0d0d482dafd162ae1ad0fb279509d9e2489055891ac3
PKG_LICENSE:=BSD-3-Clause Custom
PKG_LICENSE_FILES:=LICENSE
diff --git a/luci-app-mptcp/luasrc/view/mptcp/multipath.htm b/luci-app-mptcp/luasrc/view/mptcp/multipath.htm
index ec781bac5..5df6ddd81 100644
--- a/luci-app-mptcp/luasrc/view/mptcp/multipath.htm
+++ b/luci-app-mptcp/luasrc/view/mptcp/multipath.htm
@@ -3,9 +3,9 @@
-- Copyright 2015 OVH (OverTheBox@ovh.net)
-- Simon Lelievre (simon.lelievre@corp.ovh.com)
-- Sebastien Duponcheel (sebastien.duponcheel@ovh.net)
--- Copyright 2018-2020 Ycarus - Yannick Chabanois (ycarus@zugaina.org)
+-- Copyright 2018-2020 Ycarus - Yannick Chabanois (ycarus@zugaina.org) for OpenMPTCProuter
--
--- This file is part of OverTheBox for OpenWrt.
+-- Part of this file come from OverTheBox for OpenWrt.
--
-- OverTheBox is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@@ -45,6 +45,9 @@
end
local curifname = luci.http.formvalue("dev") or "all"
+ local bandwidthtotalurl = "admin/network/mptcp/multipath_bandwidth"
+ local bandwidthintfurl = "admin/network/mptcp/interface_bandwidth"
+
-%>
<%+header%>
@@ -246,7 +249,7 @@
labelup_scale.innerHTML = String.format('<%:(%d minutes window, %d seconds interval)%>', 3, data_wanted / 60);
/* render datasets, start update interval */
- XHR.poll(3, '<%=build_url("admin/network/mptcp/multipath_bandwidth", all)%>', null,
+ XHR.poll(3, '<%=build_url(bandwidthtotalurl, all)%>', null,
function(x, dataarray)
{
var data_max_dnl = 0;
@@ -779,7 +782,7 @@
label_scale.innerHTML = String.format('<%:(%d minute window, %d second interval)%>', data_wanted / 60, 3);
/* render datasets, start update interval */
- XHR.poll(3, '<%=build_url("admin/network/mptcp/interface_bandwidth", curifname)%>', null,
+ XHR.poll(3, '<%=build_url(bandwidthintfurl, curifname)%>', null,
function(x, data)
{
var data_max = 0;
diff --git a/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js b/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js
index 9cc13933a..c41b9fb2e 100644
--- a/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js
+++ b/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js
@@ -28,6 +28,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'name', _('Domain'));
o.rmempty = false;
@@ -44,6 +47,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'ip', _('IP'));
o.rmempty = false;
@@ -60,6 +66,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'dport', _('port'));
o.rmempty = false;
@@ -83,6 +92,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'sport', _('port'));
o.rmempty = false;
@@ -106,6 +118,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'mac', _('source MAC-Address'));
o.datatype = 'list(unique(macaddr))';
o.rmempty = false;
@@ -127,6 +142,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'ip', _('IP Address'));
o.datatype = 'or(ip4addr,ip6addr)';
o.rmempty = false;
@@ -150,6 +168,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'asn', _('ASN'));
o.rmempty = false;
@@ -166,6 +187,9 @@ return L.view.extend({
s.anonymous = true;
s.nodescriptions = true;
+ o = s.option(form.Flag, 'enabled', _('Enabled'));
+ o.default = o.enabled;
+
o = s.option(form.Value, 'proto', _('Protocol/Service'));
o.rmempty = false;
o.load = function(section_id) {
diff --git a/luci-app-omr-bypass/root/etc/init.d/omr-bypass b/luci-app-omr-bypass/root/etc/init.d/omr-bypass
index 257e3d7a2..29535f3f9 100755
--- a/luci-app-omr-bypass/root/etc/init.d/omr-bypass
+++ b/luci-app-omr-bypass/root/etc/init.d/omr-bypass
@@ -39,8 +39,11 @@ _bypass_ip() {
_bypass_domains() {
local domain
local intf
+ local enabled
config_get domain $1 name
config_get intf $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
_bypass_domain $domain $intf
}
@@ -82,8 +85,11 @@ _bypass_domain() {
_bypass_mac() {
local mac
local intf
+ local enabled
config_get mac $1 mac
config_get intf $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
local intfid="$(uci -q get omr-bypass.$intf.id)"
[ -z "$intf" ] && intf="all"
@@ -120,8 +126,11 @@ _bypass_mac() {
_bypass_lan_ip() {
local ip
local intf
+ local enabled
config_get ip $1 ip
config_get intf $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
local intfid="$(uci -q get omr-bypass.$intf.id)"
[ -z "$intf" ] && intf="all"
@@ -171,9 +180,14 @@ _bypass_lan_ip() {
_bypass_dest_port() {
local intf
+ local enabled
+ local dport
+ local proto
config_get dport $1 dport
config_get proto $1 proto
config_get intf $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
local intfid="$(uci -q get omr-bypass.$intf.id)"
[ -z "$intf" ] && intf="all"
@@ -221,9 +235,14 @@ _bypass_dest_port() {
_bypass_src_port() {
local intf
+ local enabled
+ local sport
+ local proto
config_get sport $1 sport
config_get proto $1 proto
config_get intf $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
local intfid="$(uci -q get omr-bypass.$intf.id)"
[ -z "$intf" ] && intf="all"
@@ -272,8 +291,11 @@ _bypass_src_port() {
_bypass_proto() {
local proto
local intf
+ local enabled
config_get proto $1 proto
config_get intf $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
local intfid="$(uci -q get omr-bypass.$intf.id)"
[ -z "$intf" ] && intf="all"
@@ -411,16 +433,22 @@ _intf_rule() {
_bypass_ip_set() {
local ip
local interface
+ local enabled
config_get ip $1 ip
config_get interface $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
_bypass_ip $ip $interface
}
_bypass_asn() {
local asn
local interface
+ local enabled
config_get asn $1 asn
config_get interface $1 interface
+ config_get enabled $1 enabled
+ [ "$enabled" = "0" ] && return
local asnips
asnips=`curl --max-time 4 -s -k https://stat.ripe.net/data/announced-prefixes/data.json?resource=${asn} | jsonfilter -q -e '@.data.prefixes.*.prefix'`
for ip in $asnips; do
diff --git a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua
index e24773638..cad43d555 100644
--- a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua
+++ b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua
@@ -228,6 +228,8 @@ function wizard_add()
local auth = luci.http.formvalue("cbid.network.%s.auth" % intf) or ""
local mode = luci.http.formvalue("cbid.network.%s.mode" % intf) or ""
local sqmenabled = luci.http.formvalue("cbid.sqm.%s.enabled" % intf) or "0"
+ local multipath = luci.http.formvalue("cbid.sqm.%s.multipath" % intf) or "on"
+ local lan = luci.http.formvalue("cbid.sqm.%s.lan" % intf) or "0"
if typeintf == "normal" then
typeintf = ""
end
@@ -251,6 +253,11 @@ function wizard_add()
ucic:set("network",intf,"auth",auth)
ucic:set("network",intf,"mode",mode)
ucic:set("network",intf,"label",label)
+ if lan == "1" then
+ ucic:set("network",intf,"multipath","off")
+ else
+ ucic:set("network",intf,"multipath",multipath)
+ end
ucic:set("network",intf,"defaultroute",0)
ucic:set("network",intf,"peerdns",0)
if ipaddr ~= "" then
diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm
index 9906d34c5..42840637f 100644
--- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm
+++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm
@@ -19,7 +19,7 @@
-- along with OverTheBox. If not, see (http://www.gnu.org/licenses/)
-%>
<%
--- Copyright 2018 Ycarus (Yannick Chabanois) ycarus@zugaina.org
+-- Copyright 2018-2020 Ycarus (Yannick Chabanois) ycarus@zugaina.org for OpenMPTCProuter
--
-- Small changes to make this work with OpenMPTCProuter
-- New features:
@@ -48,7 +48,7 @@
}
}
function formatBytes(a,b=2){if(0===a)return"0 Bytes";const c=0>b?0:b,d=Math.floor(Math.log(a)/Math.log(1024));return parseFloat((a/Math.pow(1024,d)).toFixed(c))+" "+["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"][d]}
- XHR.poll(20, '/cgi-bin/luci/admin/system/openmptcprouter/interfaces_status', null,
+ XHR.poll(20, '<%=build_url("admin/system/openmptcprouter/interfaces_status")%>', null,
function(x, mArray)
{
var status = document.getElementById('openmptcprouter_status');
diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm
index 23c6881fc..38869947a 100644
--- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm
+++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm
@@ -342,16 +342,75 @@ end
+