diff options
author | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2014-04-15 14:11:05 -0400 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2014-04-15 14:11:05 -0400 |
commit | 65c923b603247af68f1b4405363d92c1c19009eb (patch) | |
tree | 43323ae93f622fd6c111b6a7c16c2f18c9ab19ba | |
parent | Bump. (diff) | |
download | netifrc-bug504458.tar.gz netifrc-bug504458.tar.bz2 netifrc-bug504458.zip |
fix for bug 503358bug504458
This adds support for macchanger 1.6 as well as keeping support
for macchanger <1.6.
-rw-r--r-- | net/macchanger.sh | 4 |
1 files 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 |