mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Merge branch 'test' into develop
This commit is contained in:
commit
7674697c1e
13 changed files with 61 additions and 9 deletions
|
@ -15,8 +15,10 @@ interface_multipath_settings() {
|
|||
[ "$mode" = "off" ] || [ "$mode" = "" ] && return 1
|
||||
config_get ifname "$config" ifname
|
||||
[ -z "$ifname" ] && ifname=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
|
||||
[ -n "$(echo $ifname | grep '@')" ] && ifname=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
|
||||
[ -z "$ifname" ] && return 1
|
||||
addr=$(ifstatus ${config} | jsonfilter -q -e '@["ipv4-address"][0].address')
|
||||
[ -z "$addr" ] && return 1
|
||||
count=$(($count+1))
|
||||
port=$((firstport+count))
|
||||
cat >> /tmp/etc/${interface_name}.conf <<-EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue