Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 117406
Collapse All | Expand All

(-)lib/rcscripts/net.modules.d/bridge (-3 / +5 lines)
Lines 131-152 Link Here
131
	if [[ -z ${!ports} && -n ${!briface} ]]; then
131
	if [[ -z ${!ports} && -n ${!briface} ]]; then
132
		ports="${iface}"
132
		ports="${iface}"
133
		iface="${!briface}"
133
		iface="${!briface}"
134
	else
135
		ports="${!ports}"
134
	fi
136
	fi
135
137
136
	# Create the bridge if needed
138
	# Create the bridge if needed
137
	bridge_exists "${iface}" || bridge_create "${iface}"
139
	bridge_exists "${iface}" || bridge_create "${iface}"
138
140
139
	if [[ -n ${!ports} ]]; then
141
	if [[ -n ${ports} ]]; then
140
		einfo "Adding ports to ${iface}"
142
		einfo "Adding ports to ${iface}"
141
		eindent
143
		eindent
142
144
143
		for i in ${!ports}; do
145
		for i in ${ports}; do
144
			interface_exists "${i}" && continue 
146
			interface_exists "${i}" && continue 
145
			eerror "interface ${i} does not exist"
147
			eerror "interface ${i} does not exist"
146
			return 1
148
			return 1
147
		done
149
		done
148
150
149
		for i in ${!ports}; do
151
		for i in ${ports}; do
150
			ebegin "${i}"
152
			ebegin "${i}"
151
			bridge_add_port "${iface}" "${i}"
153
			bridge_add_port "${iface}" "${i}"
152
			eend $? || return 1
154
			eend $? || return 1

Return to bug 117406