Quote Originally Posted by gowator

stick this in /etc/init.d and call it something like setwlan
then in rc3.d (depending where you wanna start it) create a symlink
S80setwlan -> ../init.d/setwlan (use ln -s)
repeat in rc4.d and rc5.d

S80 is a guess, it needs to be AFTER networking....i.e a bigger number else eth0 won't exist!
Easier method as root
Code:
update-rc.d setwlan start 80 2 3 4 5 . stop 80 0 1 6 .
This will set up the links for you automatically using the Debian way to do it, if you use -n (update-rc.d -n setwlan ....) in the line then you can simulate the action before doing it.