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

Collapse All | Expand All

(-)a/net/macchanger.sh (-2 / +2 lines)
Lines 69-81 macchanger_pre_start() Link Here
69
	fi
69
	fi
70
70
71
	mac=$(/sbin/macchanger ${opts} "${IFACE}" \
71
	mac=$(/sbin/macchanger ${opts} "${IFACE}" \
72
		| sed -n -e 's/^Faked MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\1/p' )
72
		| sed -n -e 's/^\(Faked|New\) MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\2/p' )
73
	_up
73
	_up
74
74
75
	# Sometimes the interface needs to be up ....
75
	# Sometimes the interface needs to be up ....
76
	if [ -z "${mac}" ]; then
76
	if [ -z "${mac}" ]; then
77
		mac=$(/sbin/macchanger ${opts} "${IFACE}" \
77
		mac=$(/sbin/macchanger ${opts} "${IFACE}" \
78
		| sed -n -e 's/^Faked MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\1/p' )
78
		| sed -n -e 's/^\(Faked|New\) MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\2/p' )
79
	fi
79
	fi
80
80
81
	if [ -z "${mac}" ]; then
81
	if [ -z "${mac}" ]; then

Return to bug 504458