Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 122183

Summary: /etc/conf.d/net doesn't support quotes in key definition
Product: Gentoo Linux Reporter: Maxxer <lorenzo>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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