summaryrefslogtreecommitdiff
path: root/net/vlan.sh
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-12-26 17:21:34 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2011-12-26 17:22:29 -0800
commit415f48041056a020fa27cbd16bfd0be268bf693c (patch)
tree33b04137b46f6eb561b3c520c21253066b88025c /net/vlan.sh
parentacf77b73afb8011a903d5ac88f6d6dcaf7b77a2f (diff)
downloadopenrc-415f48041056a020fa27cbd16bfd0be268bf693c.tar.gz
openrc-415f48041056a020fa27cbd16bfd0be268bf693c.tar.bz2
openrc-415f48041056a020fa27cbd16bfd0be268bf693c.tar.xz
net/vlan, net/macvlan: iproute2 is required for new VLAN configuration
Since commit 683a21b0a in Feburary 2011, iproute2 has been required for new VLAN configuration. MACVLAN is also impossible to configure without iproute2. However we did not check if iproute2 was actually in the modules for a given interface, so it could end up hanging or giving weird errors. Check for iproute2 before usage now. X-Gentoo-Bug: 389437 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=389437 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net/vlan.sh')
-rw-r--r--net/vlan.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/vlan.sh b/net/vlan.sh
index 9cce3b9..ced5aa0 100644
--- a/net/vlan.sh
+++ b/net/vlan.sh
@@ -51,6 +51,14 @@ vlan_pre_start()
eerror "You must convert your vconfig_ VLAN entries to vlan${N} entries."
return 1
fi
+ local vlans=
+ eval vlans=\$vlans_${IFVAR}
+ [ -z "$vlans" ] && return 0
+ case " ${MODULES} " in
+ *" ifconfig "*)
+ eerror "sys-apps/iproute2 is required to configure VLANs"
+ return 1 ;;
+ esac
}
vlan_post_start()