cannot change mac address after change in applet icon
Asked by
ekim
When I suspend Ubuntu and wake it up the icon at top changes from the radio beacon to an up down arrow (indicating I am connecting via a lan), and no wifi networks show in the nm-applet. But the wifi still works.
And when I run a script to change the mac address ifconfig and ip indicate the original mac address is still in use.
The only way mac.sh works is from a fresh reboot.
Here is my script:
________
#!/bin/bash -x
MAC=00:`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 200 | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-
sudo ifconfig wlp1s0 down
sudo ifconfig wlp1s0 hw ether $MAC
sudo ifconfig wlp1s0 up
sudo service network-manager restart
_________
Any ideas what I can do to fix this? Or is this a bug?
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.