mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Replace ifconfig by ip
This commit is contained in:
parent
c29ba0d55d
commit
6d1b64d14d
1 changed files with 6 additions and 3 deletions
|
@ -213,7 +213,8 @@ interface_multipath_settings() {
|
|||
[ -z "$iface" ] && return 0
|
||||
#[ "$config" = "omrvpn" ] && return 0
|
||||
[ "$config" = "omrvpn" ] && mode="off"
|
||||
[ -n "$(ifconfig | grep $iface)" ] || return 0
|
||||
#[ -n "$(ifconfig | grep $iface)" ] || return 0
|
||||
[ -n "$(ip link show dev $iface)" ] || return 0
|
||||
[ "$(echo $iface | grep _dev)" != "" ] && return 0
|
||||
[ "$(echo $iface | grep '^if')" != "" ] && return 0
|
||||
[ "$iface" = "lo" ] && return 0
|
||||
|
@ -328,9 +329,11 @@ interface_multipath_settings() {
|
|||
# ip route replace default via $gateway dev $iface >/dev/null 2>&1
|
||||
#}
|
||||
if [ "$txqueuelen" != "" ]; then
|
||||
ifconfig $iface txqueuelen $txqueuelen > /dev/null 2>&1
|
||||
#ifconfig $iface txqueuelen $txqueuelen > /dev/null 2>&1
|
||||
ip link set dev $iface txqueuelen $txqueuelen > /dev/null 2>&1
|
||||
else
|
||||
ifconfig $iface txqueuelen 1000 > /dev/null 2>&1
|
||||
#ifconfig $iface txqueuelen 1000 > /dev/null 2>&1
|
||||
ip link set dev $iface txqueuelen 1000 > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
if [ "$(uci -q get openmptcprouter.settings.disable_ipv6)" != "1" ] && [ "$config" != "omr6in4" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue