From f92d0e8d42835473b46615c903d1a56652d45420 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Aug 2016 17:34:51 -0300 Subject: MAC Changer support --- files/etc/wicd/macchanger | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 files/etc/wicd/macchanger (limited to 'files/etc') diff --git a/files/etc/wicd/macchanger b/files/etc/wicd/macchanger new file mode 100755 index 0000000..2febbb4 --- /dev/null +++ b/files/etc/wicd/macchanger @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# thanks https://wiki.archlinux.org/index.php/Wicd#Change_MAC_using_macchanger + +connection_type="$1" +wireless="wlan0" +wired="eth0" + +if [[ "${connection_type}" == "wireless" ]]; then + iface="$wireless" +elif [[ "${connection_type}" == "wired" ]]; then + iface="$wired" +fi + +ip link set $iface down +macchanger -A $iface +ip link set $iface up -- cgit v1.2.3