I simply edited this file:
/etc/init.d/alsa-utils
and added the lines:
ifconfig wlan0 down
ifconfig eth0 down
after "stop)" in the file (around line 353), so it looks like this:
stop)
ifconfig wlan0 down
ifconfig eth0 down
EXITSTATUS=0
:D
ok. better method which doesn't touch the sound part.
Details:
1. Open a terminal and become super-user (yeah, this is a bad security practice, but I'm too lazy to type sudo before everything).
Code:
su
Code:
cd /etc/init.d
Code:
vi killwlan
Code:
modprobe -r iwlagn
Code:
[ESC] :wq [ENTER]
Code:
cd /etc/rc0.d
Code:
ln -sT /etc/init.d/killwlan S16killwlan
Code:
cd /etc/rc6.d
Code:
ln -sT /etc/init.d/killwlan S16killwlan
Code:
init 6
File permission if needed:
Code:
cd /etc/init.d/ sudo chmod 755 killwlan