Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212877 - Patch for openrc-9999 to make config_ESSID work with wpa_supplicant again
Summary: Patch for openrc-9999 to make config_ESSID work with wpa_supplicant again
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://roy.marples.name/openrc
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 23:47 UTC by Sascha Hlusiak
Modified: 2008-03-29 01:20 UTC (History)
1 user (show)

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


Attachments
Use correct shell_var function (wpa.patch,433 bytes, patch)
2008-03-10 08:55 UTC, Roy Marples
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Hlusiak 2008-03-09 23:47:00 UTC
openrc-9999, latest git from 03/10/08

net/wpa_supplicant.sh sets only $SSID, not $SSIDVAR (the var is empty after setting with SSIDVAR=$(_shell_var "${SSID}") in line 69). By adding $SSID to _configure_variables in net/ssidnet.sh I can use per ESSID config like config_ESSID in /etc/conf.d/net again.

--- net/ssidnet.sh      2008-03-10 00:32:37.000000000 +0100
+++ net/ssidnet.sh.new  2008-03-10 00:31:55.000000000 +0100
@@ -14,7 +14,7 @@
        local mac=$(_get_ap_mac_address | sed -e 's/://g') x=

        vebegin "Configuring ${IFACE} for SSID ${SSID}"
-       _configure_variables "${mac}" "${SSIDVAR}"
+       _configure_variables "${mac}" "${SSID}" "${SSIDVAR}"

        # Backwards compat for old gateway var
        eval x=\$gateway_${SSIDVAR}


Reproducible: Always

Steps to Reproduce:

Actual Results:  
Without that fix, my config_ESSID variables in /etc/conf.d/net are ignored and the default config_wlan0 is used, which is set to dhcp.
Comment 1 Roy Marples 2008-03-10 08:55:58 UTC
Created attachment 145716 [details, diff]
Use correct shell_var function

Try this patch instead :)
Let me know if it works!
Comment 2 Sascha Hlusiak 2008-03-10 09:50:17 UTC
(In reply to comment #1)
> Created an attachment (id=145716) [edit]
> Use correct shell_var function
> 
> Try this patch instead :)
> Let me know if it works!

It does work, too. Thanks!
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2008-03-29 01:20:00 UTC
Fixed upstream and fixed in openrc-{0.2,9999}