You are not logged in.

#1 2009-04-04 21:43:01

futuremonkey
Member
Registered: 2009-02-28
Posts: 49

netcfg = borked, or did I miss a crucial change?

Today I decided to pacman -Syu and all seemed to be fine except that netcfg no longer works.

It fails when called from rc.conf, and running

# netcfg my-wireless

(where "my-wireless" is the name of my netcfg profile conf) results in the error message:

wpa_supplicant: invalid option -- 'w'

Then it displays the output you would get from running "wpa_supplicant --help"

However, my configs seem to be correct, because I can run

# wpa_supplicant -B -Dwext -i eth0 -c /etc/wpa_supplicant/conf ; dhcpcd eth0

and the connection goes as planned.

It's a minor but annoying problem.  If it's all my fault, I'd be happy if someone could show me the errors of my ways.

Offline

#2 2009-04-04 22:28:55

paulingham
Member
Registered: 2009-03-23
Posts: 12

Re: netcfg = borked, or did I miss a crucial change?

This is also happening for me in conjuction with wpa_supplicant. netcfg fails to start the profile and gives invalid option -- 'w'.

This only happens in wpa_supplicant-0.6.9-1 and is fine with wpa_supplicant 0.5.11-1. I downgraded the package on noticing it didn't work.

Offline

#3 2009-04-04 23:03:42

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: netcfg = borked, or did I miss a crucial change?

Looks like netcfg needs an update for the new wpa_supplicant. It no longer supports the "-w" flag (wait for interface to be added, if needed). Someone that actually uses netcfg should file a bug on it. (I don't use it, so I wouldn't be able to test any fix.)

The flag is set on line 91 of /usr/lib/network/wireless.subr . Until it's fixed, you can try removing it from the command there.

Offline

#4 2009-04-05 11:07:21

n8schicht
Member
From: Südbaden
Registered: 2006-12-27
Posts: 138
Website

Re: netcfg = borked, or did I miss a crucial change?

ataraxia wrote:

The flag is set on line 91 of /usr/lib/network/wireless.subr . Until it's fixed, you can try removing it from the command there.

Thank you very much smile

Offline

#5 2009-04-05 12:03:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: netcfg = borked, or did I miss a crucial change?

An updated netcfg was supposed to be moved with the wpa_supplicant updated but was missed.  Should be making its way to mirrors now.

Offline

#6 2009-04-05 13:14:47

greenfish
Member
From: eating fish in /dev/null
Registered: 2008-08-30
Posts: 229

Re: netcfg = borked, or did I miss a crucial change?

same issues here, tried commenting/removing the line on 91, but that didn't solve my problem, instead of that long error string i get "wpa_supplicant config error" instead. I've tried using netcfg from the testing branch but im recieving lots of errors "package not found" etc, I guess it's still being uploading?

Thank You cool

Last edited by greenfish (2009-04-05 13:16:04)


ARCH64 archSKYNET server AMD  Phenom(tm) II X2 550 HDD 6TB Ram 8GB
Hobbies: Running, Pistol Marksmanship, Classic Music

Offline

#7 2009-04-05 15:19:07

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: netcfg = borked, or did I miss a crucial change?

You are not supposed to kill the entire line; instead, you have to change it to have it look like this:

 wpa_supplicant -B -P/var/run/wpa_supplicant_${INTERFACE}.pid -i${INTERFACE} -c $WPA_CONF $WPA_OPTS

Notice that wpa-supplicant is called with 'wpa_supplicant -B' instead of 'wpa_supplicant -wB' as it was before.

Offline

#8 2009-04-05 18:28:28

paulingham
Member
Registered: 2009-03-23
Posts: 12

Re: netcfg = borked, or did I miss a crucial change?

The package update is now appearing by the way, so this should be resolved.

Offline

#9 2009-04-06 08:46:11

greenfish
Member
From: eating fish in /dev/null
Registered: 2008-08-30
Posts: 229

Re: netcfg = borked, or did I miss a crucial change?

Stalafin wrote:

You are not supposed to kill the entire line; instead, you have to change it to have it look like this:

 wpa_supplicant -B -P/var/run/wpa_supplicant_${INTERFACE}.pid -i${INTERFACE} -c $WPA_CONF $WPA_OPTS

Notice that wpa-supplicant is called with 'wpa_supplicant -B' instead of 'wpa_supplicant -wB' as it was before.

cheers that did the trick lol


ARCH64 archSKYNET server AMD  Phenom(tm) II X2 550 HDD 6TB Ram 8GB
Hobbies: Running, Pistol Marksmanship, Classic Music

Offline

#10 2009-04-06 09:32:09

borrell
Member
Registered: 2008-12-02
Posts: 31
Website

Re: netcfg = borked, or did I miss a crucial change?

Awesome, that got it working again. Thanks, I knew it should have been something simple like that

Offline

Board footer

Powered by FluxBB