Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless network with an ESSID with non-alphanumerics
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
prlewis
n00b
n00b


Joined: 26 Oct 2006
Posts: 7

PostPosted: Mon Jan 22, 2007 12:57 pm    Post subject: Wireless network with an ESSID with non-alphanumerics Reply with quote

Hi,

I have my wireless networking all set up okay - it works at home.

I have just tried to connect to the work network.

To /etc/conf.d/wireless I added the line:

Code:

key_ESSID="xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xx enc open"


Where ESSID is the name of the ESSID and the x's represent the WEP key.

I also added the ESSID to the list of preferred access points.

However, the ESSID has a '-' character (minus sign or dash) in it. Initially I just entered in the ESSID normally, but when I tried to start the interface (using "/etc/init.d/net.eth2 start") it gave an error saying "command not found" and then that the key was not set for this network.

Reading the comments in the file, I escaped the '-' character, prepending it with a '\'.

This gave the same error.

This appears to be a bug relating to ESSIDs with the '-' character in it, but I just wondered if anyone else has had any success with it or if I am doing something wrong.

Thanks!

Pete.
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Mon Jan 22, 2007 2:53 pm    Post subject: Reply with quote

Apperantly the escape characters are in C style! And the - (mius) is a - in C. I assume u did a mistake in your config.

and a link to the C escape chars:
http://www.codecodex.com/wiki/index.php?title=Escape_sequences#C_.2F_C.2B.2B
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6837
Location: Blighty

PostPosted: Mon Jan 22, 2007 2:55 pm    Post subject: Reply with quote

Change all non alpha numerics in variable names to _
Values can hold any character.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap3
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
prlewis
n00b
n00b


Joined: 26 Oct 2006
Posts: 7

PostPosted: Mon Jan 22, 2007 4:24 pm    Post subject: Ah, thanks. Reply with quote

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum