mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Merge pull request #2 from Ysurac/develop
Fix for lan interface settings in wizard b3bfe73
This commit is contained in:
commit
48fd5168de
2 changed files with 10 additions and 6 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -47,6 +47,8 @@ jobs:
|
|||
OMR_FEED_URL: https://github.com/ysurac/openmptcprouter-feeds
|
||||
SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
|
||||
OMR_TARGET: ${{ matrix.OMR_TARGET }}
|
||||
OMR_HOST: ${{ secrets.OMR_HOST }}
|
||||
OMR_PORT: ${{ secrets.OMR_PORT }}
|
||||
run: |
|
||||
OMR_FEED_SRC="${SOURCE_NAME}" sh build.sh prepare {tools,toolchain}/install -j$(nproc) || OMR_FEED_SRC="${SOURCE_NAME}" sh build.sh prepare {tools,toolchain}/install -j1 V=s
|
||||
#echo -e "${{ secrets.OMR_PRIVKEY }}" > $OMR_TARGET/source/key-build
|
||||
|
|
|
@ -230,16 +230,18 @@ function wizard_add()
|
|||
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 ~= "" then
|
||||
if typeintf == "normal" then
|
||||
typeintf = ""
|
||||
end
|
||||
ucic:set("network",intf,"type",typeintf)
|
||||
if typeintf == "macvlan" then
|
||||
end
|
||||
if typeintf == "macvlan" and masterintf ~= "" then
|
||||
ucic:set("network",intf,"type","macvlan")
|
||||
ucic:set("network",intf,"masterintf",masterintf)
|
||||
elseif typeintf == "" and (proto == "static" or proto == "dhcp" ) then
|
||||
elseif typeintf == "" and ifname ~= "" and (proto == "static" or proto == "dhcp" ) then
|
||||
ucic:set("network",intf,"ifname",ifname)
|
||||
elseif typeintf == "" and (proto == "ncm" or proto == "qmi" or proto == "modemmanager") then
|
||||
elseif typeintf == "" and device ~= "" and (proto == "ncm" or proto == "qmi" or proto == "modemmanager") then
|
||||
ucic:set("network",intf,"device",device)
|
||||
end
|
||||
if proto ~= "other" then
|
||||
|
|
Loading…
Reference in a new issue