Hello I am trying to get a macchanger script to work on start up.
I am running Linux Mint 15 and the macchanger program is installed.
I followed the directions from this linux mint site.
Here is my script and errors:
The directory my file is in.
dgreene-1025C init.d # pwd
The permissions and ownership of my file.
ls-al | more
-rwxr-xr-x 1 root root 146 Nov 5 19:06 changemac
dgreene-1025C init.d # cat changemac
ifconfig eth0 down
ifconfig wlan0 down
/usr/bin/macchanger -r eth0
/usr/bin/macchanger -r wlan0
ifconfig eth0 up
ifconfig wlan0 up
Cannot enable script to execute at startup recieve the following error.
dgreene-1025C init.d # update-rc.d changemac defaults
update-rc.d: warning: /etc/init.d/changemac missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System start/stop links for /etc/init.d/changemac already exist.
However script runs fine when executed at command line.
dgreene-1025C init.d # ./changemac
Permanent MAC: 10:bf:48:33:8e:2a (unknown)
Current MAC: 04:55:03:89:64:ad (unknown)
New MAC: f2:04:1e:7c:f9:43 (unknown)
Permanent MAC: 94:db:c9:a1:8f:67 (unknown)
Current MAC: 94:db:c9:a1:8f:67 (unknown)
New MAC: c6:a9:31:71:8e:21 (unknown)
When I restart the script does not run.
Can anyone see what I am doing wrong?