1. create a shell script of the commands you manually enter.
#!/bin/bash
/usr/sbin/ifconfig eth1 up
/usr/sbin/iwconfig ETH1 ESSID myessid KEY 393k93j39fj39
2. Make the script executable
CHMOD u+x scriptname
3. Move the script to /etc/rc.d
mv ./scriptname /etc/rc.d
4. Link the script to a startfile in whichever runlevel you are in.
cd /etc/rc.d/rc5.d
ln -s ../scriptname ./S15scriptname
YOU MIGHT HAVE TO MAKE CHANGES
In step one, you'll have to change my two command to whatever you have to enter each time.
In step four, you might have to change the rc5.d to 3 if you are running in runlevel 3. and you can change the 15 to whatever you like.
Does that help?
Last edited by musicman_ace; 12-05-2004 at 02:35 AM.
|