Change MAC at every boot
S Mathias
smathias1972 at yahoo.com
Sat Dec 18 12:29:20 UTC 2010
lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
Distributor ID: Fedora
Description: Fedora release 14 (Laughlin)
Release: 14
Codename: Laughlin
# uname -a
Linux a 2.6.35.9-64.fc14.i686.PAE #1 SMP Fri Dec 3 12:28:00 UTC 2010 i686 i686 i386 GNU/Linux
I'm trying to do what was mentioned in the $subject:
echo -e '#!/bin/bash\n\nmacchanger -r eth0\nmacchanger -r wlan0' > /etc/rc.d/init.d/macchanger
ln -s /etc/rc.d/init.d/macchanger /etc/rc.d/rc5.d/S22macchanger
chmod +x /etc/rc.d/init.d/macchanger
S23 is the network manager, and i'm sure i'm in runlevel 5.
but the mac doesn't change at boot, and i can't see any log messages regarding it :(
Where should i put my script? or it doesn't have enough permission to change the MAC's?
Thank you for any help (or pointing to a howto)
More information about the users
mailing list