Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 346365 | Differences between
and this patch

Collapse All | Expand All

(-)a/net/vlan.sh (-2 / +3 lines)
Lines 4-9 Link Here
4
vlan_depend()
4
vlan_depend()
5
{
5
{
6
	program /sbin/vconfig
6
	program /sbin/vconfig
7
	program ip
7
	after interface
8
	after interface
8
	before dhcp
9
	before dhcp
9
}
10
}
Lines 75-81 vlan_post_start() Link Here
75
	local vlan= e= s=
76
	local vlan= e= s=
76
	for vlan in ${vlans}; do
77
	for vlan in ${vlans}; do
77
		einfo "Adding VLAN ${vlan} to ${IFACE}"
78
		einfo "Adding VLAN ${vlan} to ${IFACE}"
78
		e="$(vconfig add "${IFACE}" "${vlan}" 2>&1 1>/dev/null)"
79
		e="$(ip link add link "${IFACE}" name "${IFACE}.${vlan}" type vlan id "${vlan}" 2>&1 1>/dev/null)"
79
		if [ -n "${e}" ]; then
80
		if [ -n "${e}" ]; then
80
			eend 1 "${e}"
81
			eend 1 "${e}"
81
			continue
82
			continue
Lines 110-116 vlan_post_stop() Link Here
110
			stop
111
			stop
111
		) && {
112
		) && {
112
			mark_service_stopped "net.${vlan}"
113
			mark_service_stopped "net.${vlan}"
113
			vconfig rem "${vlan}" >/dev/null
114
			ip link delete "${vlan}" type vlan >/dev/null
114
		}
115
		}
115
	done
116
	done
116
117

Return to bug 346365