net/vlan: Fix mtu setting
Fix minor shell typo that broke setting mtu on vlans. X-Gentoo-Bug: 392971 X-Gentoo-Bug-URL: https://bugs.gentoo.org/392971 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
ce9994f7ca
commit
ac2391e0cb
@ -85,7 +85,7 @@ vlan_post_start()
|
|||||||
eval broadcast=\$broadcast_vlan${vlan}
|
eval broadcast=\$broadcast_vlan${vlan}
|
||||||
local mtu=
|
local mtu=
|
||||||
eval mtu=\$mtu_vlan${vlan}
|
eval mtu=\$mtu_vlan${vlan}
|
||||||
local opts="${txqueuelen:+txqueuelen} ${txqueuelen} ${mac:+address} ${mac} ${broadcast:+broadcast} ${broadcast} ${mtu+:mtu} ${mtu}"
|
local opts="${txqueuelen:+txqueuelen} ${txqueuelen} ${mac:+address} ${mac} ${broadcast:+broadcast} ${broadcast} ${mtu:+mtu} ${mtu}"
|
||||||
|
|
||||||
e="$(ip link add link "${IFACE}" name "${vname}" ${opts} type vlan id "${vlan}" ${vflags} ${vingress} ${vegress} 2>&1 1>/dev/null)"
|
e="$(ip link add link "${IFACE}" name "${vname}" ${opts} type vlan id "${vlan}" ${vflags} ${vingress} ${vegress} 2>&1 1>/dev/null)"
|
||||||
if [ -n "${e}" ]; then
|
if [ -n "${e}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user