commit: fc69aa3192ad56b4527248820e3a628da3a91809 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> AuthorDate: Tue Apr 15 18:11:05 2014 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Tue Apr 15 18:18:34 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=fc69aa31
net/macchanger: fix for bug 503358 This adds support for macchanger 1.6 as well as keeping support for macchanger <1.6. Reported-By: teknocratdefunct <AT> riseup.net X-Gentoo-Bug: 504458 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=504458 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> --- net/macchanger.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/macchanger.sh b/net/macchanger.sh index 4e535ec..ff13770 100644 --- a/net/macchanger.sh +++ b/net/macchanger.sh @@ -69,13 +69,13 @@ macchanger_pre_start() fi mac=$(/sbin/macchanger ${opts} "${IFACE}" \ - | sed -n -e 's/^Faked MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\1/p' ) + | sed -n -e 's/^\(Faked\|New\) MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\2/p' ) _up # Sometimes the interface needs to be up .... if [ -z "${mac}" ]; then mac=$(/sbin/macchanger ${opts} "${IFACE}" \ - | sed -n -e 's/^Faked MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\1/p' ) + | sed -n -e 's/^\(Faked\|New\) MAC:.*\<\(..:..:..:..:..:..\)\>.*/\U\2/p' ) fi if [ -z "${mac}" ]; then