You are not logged in.
My Problem is that the ESSID from my router has spaces in it.
In my /etc/network-profiles/wireless
ESSID="word1 word2 word3"
IWOPTS="mode managed essid $ESSID"
On network start i get the error
iwconfig: unknown command "word2"
and the essid is word1
how do i escape the spaces so the complete essid is passed to iwconfig?
btw: changing the essid is no option here
Last edited by brainiac (2007-11-08 17:23:46)
Offline
Quick n' dirty:
ESSID=`echo $ESSID | sed "s/ /\\\\\\ /g"`
Offline
And where do i put my ESSID?
like that ?
foobar="word1 word2 word3"
ESSID=`echo $foobar | sed "s/ /\\\\\\ /g"`
IWOPTS="mode managed essid $ESSID"
or
ESSID="word1 word2 word3"
ESSID=`echo $ESSID | sed "s/ /\\\\\\ /g"`
IWOPTS="mode managed essid $ESSID"
Last edited by brainiac (2007-11-08 17:46:16)
Offline
single quotation marks work fine for me...
like this
ESSID='FRITZ!Box Fon WLAN 7141'
Offline
single quotation marks work fine for me...
like thisESSID='FRITZ!Box Fon WLAN 7141'
i get still
iwconfig: unknown command "word2"
But why is it working for you?
Do you use the network-profiles...would you paste your config?
Last edited by brainiac (2007-11-08 18:05:19)
Offline
i found a thread with a disussion about the same problem...
http://bbs.archlinux.org/viewtopic.php?id=19440
the workaround which is used at the end seems to be in the recent code.
but i have still the same error
Last edited by brainiac (2007-11-08 18:08:28)
Offline
should i file an bug report on this ?
Offline
nope, netcfg is going to be replaced by netcfg2... which supports ESSID's with spaces, and is here:
http://bbs.archlinux.org/viewtopic.php? … 94#p296294
James
Offline