You are not logged in.
I'm setting up the wireless network. In rc.conf:
wlan_wlan0="wlan0 essid myessid key mykey"
myessid in my case is something like "ABC DE", I've tried many ways, but it seems all archlinux is doing is to simply split that string with white space characters as deliminaters.
Can any one tell me how to write the correct script in my case? Thank you.
Offline
Something like "ABC\ DE" should work.
Offline
Unfortunately no... It is not working.
I tried:
wlan_wlan0="wlan0 essid ABC\ DE key mykey"
wlan_wlan0='wlan0 essid "ABC DE" key mykey'
wlan_wlan0="wlan0 essid ABC\\ DE key mykey"
wlan_wlan0='wlan0 essid ABC\ DE key mykey'
they won't work...
Offline
wlan_wlan0="wlan0 essid \"ABC DE\" key mykey"
That should work...I think...
Offline
I reconfigured the router, and changed my essid....
I think the system is splitting the string and passing the parameters to iwconfig. If that is the case, it may not support white space, I think...
Thank you all for your reply
Offline
Worst case, I would file a bug report, as there should be a way to do this
Offline
Worst case, I would file a bug report, as there should be a way to do this
+1
i would try foo\040bar
don't drink unwashed fruit juice.
i never make predictions, especially about the future.
Offline
Ranguvar wrote:Worst case, I would file a bug report, as there should be a way to do this
+1
i would try foo\040bar
This doesn't work either. Anyone got any ideas before I file a bug report?
Offline
wlan_wlan0="wlan0 essid 'ABC\\ DE' key mykey"
This is the one variant you seem to not have tried. IIRC when using quotes, you need to use one set of quotes and a different set inside of the first quote marks. Of course I could be wrong but give it a try and see?
Offline
I think this is not possible.
/etc/rc.d/network
wi_up()
{
eval iwcfg="\$wlan_${1}"
[ "$iwcfg" = "" ] && return 0
/usr/sbin/iwconfig $iwcfg
iwcfg is used unquoted and thus subject to field splitting. The standard doesn't seem to provide any way to switch it off from inside the string being splitted.
Last edited by diegonc (2010-07-09 21:25:16)
Offline
@diegonc - good find.
@OP - looks like you should file a bug report
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline