FS#7822 - ifup() in /etc/rc.d/network runs iwconfig before wireless interface is up

Attached to Project: Arch Linux
Opened by Steve Engledow (stilvoid) - Wednesday, 15 August 2007, 18:53 GMT
Last edited by James Rayner (iphitus) - Monday, 10 December 2007, 23:16 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08 Don't Panic
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

"/etc/rc.d/network start" does not bring wireless interfaces up before running iwconfig and so the following error is received:

Error for wireless request "Set Mode" (8B06) :
SET failed on device <WIRELESS INTERFACE> ; Network is down

I've added a line to ifup() that fixes the problem but perhaps there's a better way (or I'm doing something stupid)

<snip>
if [ "$iwcfg" != "" ]; then
# Bring the interface up first!
/sbin/ifconfig ${1} up
sh -c "/usr/sbin/iwconfig $iwcfg"
/bin/sleep 2
fi
</snip>

Also, "/etc/rc.d/network stop" doesn't always seem to take the interfaces down correctly. I haven't looked in to that yet though.

Additional info:
package: initscripts 2007.08-1
This task depends upon

Closed by  James Rayner (iphitus)
Monday, 10 December 2007, 23:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  netcfg2 will replace conf.d/wireless, netcfg2 handles this correctly

Loading...