aboutsummaryrefslogtreecommitdiff
path: root/net/iproute2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r--net/iproute2.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 08a42664..b1fe8619 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -190,16 +190,6 @@ _tunnel()
iproute2_pre_start()
{
- # MTU support
- local mtu=
- eval mtu=\$mtu_${IFVAR}
- [ -n "${mtu}" ] && ip link set "${IFACE}" mtu "${mtu}"
-
- # TX Queue Length support
- local len=
- eval len=\$txqueuelen_${IFVAR}
- [ -n "${len}" ] && ip link set "${IFACE}" txqueuelen "${len}"
-
local tunnel=
eval tunnel=\$iptunnel_${IFVAR}
if [ -n "${tunnel}" ]; then
@@ -212,6 +202,16 @@ iproute2_pre_start()
_up
fi
+ # MTU support
+ local mtu=
+ eval mtu=\$mtu_${IFVAR}
+ [ -n "${mtu}" ] && ip link set "${IFACE}" mtu "${mtu}"
+
+ # TX Queue Length support
+ local len=
+ eval len=\$txqueuelen_${IFVAR}
+ [ -n "${len}" ] && ip link set "${IFACE}" txqueuelen "${len}"
+
return 0
}