On Sun, 18 Dec 2005, Omar Rihani wrote:
> Hi all,
> Can I have the following commands executed at startup to enable the wireless
> lan... which file i must edit?
>
> ifconfig wlan0 up
> ifconfig wlan0 192.168.2.50
> iwconfig wlan0 mode ad-hoc
>
The system starts up in runlevel 3, hence after exececuting
/etc/rc.d/rcS.sysinit it executes the scripts starting with "S" in
/etc/init.d/rc3.d.........
$ ls -l etc/rc.d/rc3.d
total 0
lrwxrwxrwx 1 root root 20 Nov 10 21:48 NOS30telnetd ->
../../init.d/telnetd
lrwxrwxrwx 1 root root 19 Nov 10 21:48 NOS40apache ->
../../init.d/apache
lrwxrwxrwx 1 root root 20 Nov 10 21:48 S10Network ->
../../init.d/network
lrwxrwxrwx 1 root root 20 Nov 10 21:48 S11portmap ->
../../init.d/portmap
lrwxrwxrwx 1 root root 21 Nov 10 21:48 S20inetd ->
../../init.d
(I've commented out the telnetd startup script on my board)
the scripts are in /etc/init.d/
I'd hazzard a guess that /etc/init.d/network is your baby. But YMMV.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|