FS#18562 - [initscripts] wireless network startup (/etc/rc.d/network patch)

Attached to Project: Arch Linux
Opened by azure (azure) - Thursday, 04 March 2010, 19:55 GMT
Last edited by Tom Gundersen (tomegun) - Friday, 22 April 2011, 18:10 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version 2009.08
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I installed arch on my acer aspire one. Was trying to make wireless start automatically at boot up. I set the wireless network options as described in wiki. But /etc/rc.d/network restart was saying to me that i either need to increase WIRELESS_TIMEOUT or be sure that i have no WPA. indeed i have no wpa, and i can see that init script set the essid according to my needs, but /etc/rc.d/network scripts fails.
I opened this script, analized it and made a trivial fix to it (see below)
So i ask to add this fix to the future releases, it can not be harmful and it helped me.


wi_up()
{
eval iwcfg="\$wlan_${1}"
[ "$iwcfg" = "" ] && return 0
#this is what I added (probably interface up should be made with ifconfig.
ip l set $1 up
#end of insert
/usr/sbin/iwconfig $iwcfg
[[ -z "$WIRELESS_TIMEOUT" ]] && WIRELESS_TIMEOUT=2
sleep $WIRELESS_TIMEOUT

bssid=`iwgetid $1 -ra`
if [[ "$bssid" = "00:00:00:00:00:00" ]]; then
printhl "Could not associate $1 - try increasing WIRELESS_TIMEOUT and check network is WEP or has no security"
return 1
fi
return 0
}
This task depends upon

Closed by  Tom Gundersen (tomegun)
Friday, 22 April 2011, 18:10 GMT
Reason for closing:  Won't fix
Comment by Thomas Bächler (brain0) - Friday, 05 March 2010, 22:09 GMT
First, I cannot use that, you need to send a patch. Second, use netcfg, it is better tested, has more features and is more reliable. The wireless support in rc.conf is outdated and probably very broken, and I actually want to remove it completely (however people keep telling me not to).
Comment by Gavin Bisesi (Daenyth) - Saturday, 06 March 2010, 01:49 GMT
+1 for removing it completely
Comment by Tom Gundersen (tomegun) - Friday, 22 April 2011, 18:10 GMT
+1 for removing completely...

Loading...