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

Bug 295277

Summary: sys-apps/openrc net script can't connected to a ap name like 'abc-ed' use iwconfig
Product: Gentoo Linux Reporter: wd <wd>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: normal CC: truedfx
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description wd 2009-12-01 05:33:26 UTC
I try to use iwconfig to connect a wep ap named like 'abc-ed'.

I'v set in /etc/conf.d/net like this:
modules_eth1=( "iwconfig" )
key_abc-ed="123456"

When I start net.eth1, will got this error:
/etc/init.d/../conf.d/net: line 5: key_abc-ed=123456: command not found

It seemes like a bash script varible name limit.

Reproducible: Always

Steps to Reproduce:
1. rename wifi essid to a name not contain '-' and other char that bash varible not permit.
2.
3.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2009-12-01 21:47:00 UTC
That's not supposed to work, you should use key_abc_ed=... (using an underscore). See the installed net.example file's section "WIRELESS SSID IN VARIABLES". If it still doesn't work with that change, please re-open this bug.
Comment 2 wd 2009-12-02 01:16:46 UTC
Oh, yes, it's worked. Thks.