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
Opened by azure (azure) - Thursday, 04 March 2010, 19:55 GMT
Last edited by Tom Gundersen (tomegun) - Friday, 22 April 2011, 18:10 GMT
|
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
Comment by Thomas Bächler (brain0) -
Friday, 05 March 2010, 22:09 GMT
Comment by Gavin Bisesi (Daenyth) -
Saturday, 06 March 2010, 01:49 GMT
Comment by Tom Gundersen (tomegun) -
Friday, 22 April 2011, 18:10 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).
+1 for removing it completely
+1 for removing completely...