scripts
Hi... When I start my computer I allways have to do two things:
turn on my wirelessled connect to my wireless network Are there a way to make a script to do this automatic? Some of the commands requires root.. The commands are shown below [anden@dhcppc1 ~]$ su - Password: [root@dhcppc1 ~]# modprobe acerhk [root@dhcppc1 ~]# echo 1 > /proc/driver/acerhk/wirelessled [root@dhcppc1 ~]# And then I open Network manager to connect to the wireless network |
Pretty much every distro will have a rc.local (or equivalent)
script that is run as the last script before runlevel 3(4,5). In Slackware it's /etc/rc.d/rc.local (SuSE has a boot.local, I think), others may vary ... Just put your commands in there. Cheers, Tink |
ok.. Iam using FC4, do u know where the rc.local is?
My problem is still that I dont know the commands to connect to a wireless network.. anyone does? |
It should be in /etc (ie. /etc/rc.local).
-twantrd |
Just put the 2 lines below at the end of your /etc/rc.local and you should be fine:
modprobe acerhk & echo 1 > /proc/driver/acerhk/wirelessled |
thx a lot.. that works..
does anyone know how to connect to a wireless network via command line? |
su -
password iwconfig wlan0 essid your essid here dhclient wlan0 |
All times are GMT -5. The time now is 04:21 PM. |