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

(-)/etc/init.d/net.eth0 (+21 lines)
Lines 29-34 Link Here
29
	# No reason to check these multiple times in the file
29
	# No reason to check these multiple times in the file
30
	iface="${1/\./_}"
30
	iface="${1/\./_}"
31
	iface_IFACE="$(eval echo \$\{iface_${iface}\})"
31
	iface_IFACE="$(eval echo \$\{iface_${iface}\})"
32
	media_IFACE="$(eval echo \$\{media_${iface}\})"
32
	dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${iface}\})"
33
	dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${iface}\})"
33
	inet6_IFACE="$(eval echo \$\{inet6_${iface}\})"
34
	inet6_IFACE="$(eval echo \$\{inet6_${iface}\})"
34
	alias_IFACE="$(eval echo \$\{alias_${iface}\})"
35
	alias_IFACE="$(eval echo \$\{alias_${iface}\})"
Lines 44-49 Link Here
44
	
45
	
45
	local IFACE="${1}"
46
	local IFACE="${1}"
46
	ebegin "Bringing ${IFACE} up"
47
	ebegin "Bringing ${IFACE} up"
48
49
	if [ -n "${media_IFACE}" ]
50
		then
51
		if [ "${media_IFACE}" = "auto" ]
52
		then
53
			/sbin/mii-tool --restart ${IFACE} >/dev/null || {
54
				retval=$?
55
				eend ${retval} "Failed to restart autonegotiation on ${IFACE}"
56
				return ${retval}
57
			}
58
		else
59
			/sbin/mii-tool --force=${media_IFACE} ${IFACE} >/dev/null || {
60
				retval=$?
61
				eend ${retval} "Failed to force autonegotiation on ${IFACE} to ${media_IFACE}"
62
				return ${retval}
63
			}
64
		fi
65
		eend 0
66
	fi
67
47
	if [ "${iface_IFACE}" != "dhcp" ]
68
	if [ "${iface_IFACE}" != "dhcp" ]
48
	then
69
	then
49
		/sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {
70
		/sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {

Return to bug 35736