Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122183 - /etc/conf.d/net doesn't support quotes in key definition
Summary: /etc/conf.d/net doesn't support quotes in key definition
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 15:13 UTC by Maxxer
Modified: 2006-02-08 15:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxxer 2006-02-08 15:13:57 UTC
I have an ASCII wep key containing quotes (").
The key is something like s:abcd"efgh.
I issue iwconfig with parameter key open s:abcd\"efgh and works fine.
Setting the key into /etc/conf.d/net this way:
key_essid=("open s:abcd\"efgh")
produces the following error on network start

# /etc/init.d/net.wlan0 start
* Caching service dependencies ...                                       [ ok ] 
* Starting wlan0
*   Configuring wireless network for wlan0
/lib/rcscripts/net.modules.d/iwconfig: eval: line 351: unexpected EOF while looking for matching `"'
/lib/rcscripts/net.modules.d/iwconfig: eval: line 352: syntax error: unexpected end of file
Comment 1 SpanKY gentoo-dev 2006-02-08 15:22:28 UTC
read the comments in /etc/conf.d/wireless.example

# Any ESSID's in values like essid_eth0="My NET" may need to be escaped
# This means placing the character \ before the character
# \" need to be escaped for example
# So if your ESSID is
#      My "\ NET
# it becomes
#      My \"\\ NET