LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iwconfig, route at startup (https://www.linuxquestions.org/questions/linux-newbie-8/iwconfig-route-at-startup-110515/)

bukowski 10-30-2003 03:13 PM

iwconfig, route at startup
 
i managed to get my wireless adapter working after searching through some threads here (thanks a bunch), but every time i start up now i have to open a shell and type

ifconfig eth0 up 192.168.2.whatever
route add default gw 192.168.2.254

is there a file somewhere i could put these commands in so it will automagically execute every time i start up? using suse 9.0, kde...

thanks

inode100 10-30-2003 04:31 PM

hmmm, can't remember exact paths, (i'm on my ibook - shock horror, a mac user! well it is unix based!), but i think you maybe need to add this info to a config file under /etc/sysconfig/networking .. have a hunt round there..

also.. you could always just make a new start-up script

eg, /etc/init.d/mynetworkstartupscript. and sym link it from the /etc/rc3.d dir

and put the commands in there.. that way the commands will run at boot time.

dont forget to make the new file executable, chmod 755 "filename"

inode
:jawa:


All times are GMT -5. The time now is 11:20 PM.