You are not logged in.

#1 2009-12-12 11:15:10

Anton
Member
From: Lund, Sweden
Registered: 2009-12-12
Posts: 17

[SOLVED] Automatically setup a wireless wpa network connection

[SOLVED] (I had to change the subject line as it was too long to hold the [SOLVED] stamp)

I want to create a shell script that issues a few commands to set up my wireless network connection. How do I do that? Do I place it in /etc/rc.d/ ? Are all scripts there automatically executed or are they specified somewhere? The scripts are run with root privilegies, right? Can you point me to any useful wiki articles on this topic(s) (init scripting and shell scripting itself)?

Thank you!

Last edited by Anton (2009-12-12 13:23:51)

Offline

#2 2009-12-12 11:23:12

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Automatically setup a wireless wpa network connection

/etc/rc.local is usually where a user's personal scripts are started from:

http://wiki.archlinux.org/index.php/Arch_Boot_Process
http://wiki.archlinux.org/index.php/Rc.conf


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-12-12 11:23:55

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [SOLVED] Automatically setup a wireless wpa network connection

netcfg will do this unless you have a weird setup. Check the wiki for more info.

Offline

#4 2009-12-12 11:53:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Automatically setup a wireless wpa network connection

If it's a simple wifi set up i.e. no encryption or just wep, it can also be handled by /etc/rc.d/network with appropriate parameters in rc.conf.

Offline

#5 2009-12-12 13:16:51

Anton
Member
From: Lund, Sweden
Registered: 2009-12-12
Posts: 17

Re: [SOLVED] Automatically setup a wireless wpa network connection

Thank you for the quick answers! It's a wpa protected network, I used wpa_supplicant manually to set it up before (which I think was great for me to learn before I automated it with some script or tool I didn't know anything about).

I went with the netcfg/network profiles solution which works great. Although I was looking forward to creating my very first init script. But netcfg provides a convenient solution for me as I'm a laptop user and likely will setup more than one network profile.

Offline

Board footer

Powered by FluxBB