LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   A better way to WPA SUPPLICANT (https://www.linuxquestions.org/questions/linux-wireless-networking-41/a-better-way-to-wpa-supplicant-522454/)

Ashrack 01-24-2007 02:04 PM

A better way to WPA SUPPLICANT
 
In order to connect I must use wpa supplicant.

So I've created a bash that does the following:
Code:

#!/bin/bash

sudo wpa_supplicant -w -i eth0 -D wired -c /etc/wpa_supplicant/wpa_supplicant.conf &
sudo dhclient

But I was wondering if there is a better way to do the above thing?

Quakeboy02 01-24-2007 02:09 PM

I've heard that Ubuntu is a stepchild of Debian. If that's the case, then your /etc/network/interfaces file could look like this:

Code:

auto eth0
iface eth0 inet dhcp
        pre-up /sbin/wpa_supplicant -Bw -Dwired -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth0

Can I ask why you're using "wired"? I just haven't seen that one before.

Ashrack 01-25-2007 01:48 AM

because here in the dormitory we dont have wireless internet. But the security W2 which they use here apperently is wireless and thus all of us who are wired must also use the wireless autentication protocol to get online.

btw. pre-up /sbin/wpa_supplicant -Bw -Dwired -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth0
are those -B and -D needed or is that a mistake

cathectic 01-25-2007 06:49 AM

-B : Yes, this means you want wpa_supplicant to run in the background (if you were testing wpa_supplicant was working from the console, you might drop this).

-D : Yes, specifies which driver to use (for wireless, this is usually "wext" for Wireless Extensions)

Quakeboy02 01-25-2007 11:58 AM

"are those -B and -D needed or is that a mistake"

Not a mistake. Like your motherboard. I've got one as well.

Ashrack 01-25-2007 01:46 PM

Quote:

Originally Posted by Quakeboy02
Like your motherboard. I've got one as well.

Yea, we SOCKET A lovers RULE :)


All times are GMT -5. The time now is 10:41 AM.