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

Collapse All | Expand All

(-)net.eth0.orig (-8 / +5 lines)
Lines 144-161 Link Here
144
144
145
	if [ "$(eval echo \$\{iface_${IFACE}\})" = "dhcp" ]
145
	if [ "$(eval echo \$\{iface_${IFACE}\})" = "dhcp" ]
146
	then
146
	then
147
		/sbin/dhcpcd -k ${IFACE} &>/dev/null
148
	
149
		# Give dhcpcd time to properly shutdown
150
		local count=0
147
		local count=0
151
		einfon "  Waiting for dhcpcd to shutdown"
148
		while /sbin/dhcpcd -k ${IFACE} &>/dev/null && [ "${count}" -lt 9 ]; do
152
		while [ "${count}" -lt 5 ]
149
			# Give dhcpcd time to properly shutdown
153
		do
154
			echo -n "."
155
			sleep 1
150
			sleep 1
156
			count=$((count + 1))
151
			count=$((count + 1))
157
		done
152
		done
158
		echo "done"
153
		if [ "${count}" -ge 9 ]; then
154
			eerror "Timed out trying to stop dhcpcd"
155
		fi
159
	else
156
	else
160
		/sbin/ifconfig ${IFACE} down >/dev/null
157
		/sbin/ifconfig ${IFACE} down >/dev/null
161
	fi
158
	fi

Return to bug 17378