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

Collapse All | Expand All

(-)net.eth0 (-3 / +3 lines)
Lines 434-440 Link Here
434
# fail, the routine should still return success to indicate that
434
# fail, the routine should still return success to indicate that
435
# net.eth0 was successful
435
# net.eth0 was successful
436
iface_start_ifconfig() {
436
iface_start_ifconfig() {
437
	local iface=$1 i label
437
	local iface=$1 i x label
438
438
439
	# Why bother having the aliases in a different section if they can be
439
	# Why bother having the aliases in a different section if they can be
440
	# handled here?  This covers inet6 addresses as well
440
	# handled here?  This covers inet6 addresses as well
Lines 459-466 Link Here
459
459
460
			if [[ $retval == 0 ]]; then
460
			if [[ $retval == 0 ]]; then
461
				# DHCP succeeded, show address retrieved
461
				# DHCP succeeded, show address retrieved
462
				i=$(ifconfig ${1} | grep -m1 -o 'inet addr:[^ ]*' | cut -d: -f2)
462
				x=$(ifconfig ${1} | grep -m1 -o 'inet addr:[^ ]*' | cut -d: -f2)
463
				[[ -n ${i} ]] && einfo "    ${iface} received address ${i}"
463
				[[ -n ${x} ]] && einfo "    ${iface} received address ${x}"
464
464
465
			elif [[ -n "${ifconfig_fallback_IFACE[i]}" ]]; then
465
			elif [[ -n "${ifconfig_fallback_IFACE[i]}" ]]; then
466
				# DHCP failed, try ifconfig fallback
466
				# DHCP failed, try ifconfig fallback

Return to bug 55437