OpenPandora Angstrom - changing MAC Address - Help


It's a so-so method to keep some privacy, or crack around.


Edit /etc/init.d/wl1251-init


Under



Code:
# restore phy related LED triggers (they come from mac80211.ko)

if [ -e /sys/class/leds/ ] ; then

  for led in /sys/class/leds/* ; do

   trigger=$(grep "$(basename $led)" /etc/default/leds | grep phy | \

	 awk '{print $2}' | sed -e 's/.*phy[0-9]*\(.*\)/\1/')

   if [ "x$trigger" != "x" ] ; then

    echo "phy${phy_idx}$trigger" > "$led/trigger"

   fi

  done

fi



Add (and change the MAC address):





Code:
# change MAC adress

ifconfig wlan0 down

ifconfig wlan0 hw ether 00:00:00:00:00:00

ifconfig wlan0 up
 
For permanently setting usb0 (in case you do networking via USB-cable), you can modify /etc/network/interfaces as root. If you need more info on that (which I suppose to be unlikely), then let me know or search the internet for that file and search-terms like "usb0" and "mac".


I haven't tried it with wlan0, but it can be configured there too. There is a note though that it explicitly was commented out, because it slows down NetworkManager. Maybe this refers only to some of the out-commented settings.Try it if you like.
 
Last edited by a moderator:
Back
Top