From 65c923b603247af68f1b4405363d92c1c19009eb Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 15 Apr 2014 14:11:05 -0400 Subject: fix for bug 503358 This adds support for macchanger 1.6 as well as keeping support for macchanger <1.6. --- 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 -- cgit v1.2.3-65-gdbad