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

(-)a/net/bonding.sh (-3 / +5 lines)
Lines 97-109 bonding_pre_start() Link Here
97
	# finally add in slaves
97
	# finally add in slaves
98
	eoutdent
98
	eoutdent
99
	if [ -d /sys/class/net ]; then
99
	if [ -d /sys/class/net ]; then
100
		sys_bonding_path=/sys/class/net/"${IFACE}"/bonding
100
		if [ -n "${primary}" ]; then
101
		if [ -n "${primary}" ]; then
101
			echo "+${primary}" >/sys/class/net/"${IFACE}"/bonding/slaves
102
			echo "+${primary}" >$sys_bonding_path/slaves
102
			echo "${primary}" >/sys/class/net/"${IFACE}"/bonding/primary
103
			echo "${primary}" >$sys_bonding_path/primary
103
		fi
104
		fi
104
		for s in ${slaves}; do
105
		for s in ${slaves}; do
105
			[ "${s}" = "${primary}" ] && continue
106
			[ "${s}" = "${primary}" ] && continue
106
			echo "+${s}" >/sys/class/net/"${IFACE}"/bonding/slaves
107
			grep -q ${s} $sys_bonding_path/slaves \
108
				|| echo "+${s}" >$sys_bonding_path/slaves
107
		done
109
		done
108
	else
110
	else
109
		/sbin/ifenslave "${IFACE}" ${slaves} >/dev/null
111
		/sbin/ifenslave "${IFACE}" ${slaves} >/dev/null

Return to bug 366653