Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 404236 Details for
Bug 447110
app-misc/livecd-tools - net-setup fails to set up wlan wpa2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
net-setup-wpa-psk.patch
net-setup-wpa-psk.patch (text/plain), 2.30 KB, created by
Brian Evans (RETIRED)
on 2015-05-29 02:25:16 UTC
(
hide
)
Description:
net-setup-wpa-psk.patch
Filename:
MIME Type:
Creator:
Brian Evans (RETIRED)
Created:
2015-05-29 02:25:16 UTC
Size:
2.30 KB
patch
obsolete
>diff --git a/net-setup b/net-setup >index 0060872..ffc2144 100755 >--- a/net-setup >+++ b/net-setup >@@ -188,6 +188,24 @@ config_wireless() { > fi > } > >+config_wpa() { >+ cd /tmp/setup.opts >+ dialog --visit-items --title "SSID" \ >+ --inputbox "Please enter your SSID" \ >+ 20 50 2> ${iface}.SSID >+ SSID=$(tail -n 1 ${iface}.SSID) >+ dialog --visit-items --title "WPA(2)-PSK" \ >+ --inputbox "Please enter your WPA Preshared key in ASCII form. This should be between 8 and 63 characters" \ >+ 20 50 2> ${iface}.WPAKEY >+ WPA_KEY=$(tail -n 1 ${iface}.WPAKEY) >+ if [ -n "${WPA_KEY}" ] >+ then >+ mkdir -p /etc/wpa_supplicant >+ wpa_passphrase "${SSID}" "${WPA_KEY}" > /etc/wpa_supplicant/wpa_supplicant.conf >+ wpa_supplicant -B -i${iface} -c /etc/wpa_supplicant/wpa_supplicant.conf -Dnl80211,wext >+ fi >+} >+ > config_ip() { > cd /tmp/setup.opts > dialog --visit-items --title "TCP/IP setup" \ >@@ -279,10 +297,22 @@ write_wireless_conf() { > fi > } > >+write_wpa_conf() { >+ cd /tmp/setup.opts >+ SSID=$(tail -n 1 ${iface}.SSID) >+ if [ -n "${SSID}" ] >+ then >+ echo "" >> /etc/conf.d/net >+ echo "# This wireless configuration file was built by net-setup" > /etc/conf.d/net >+ echo "modules_${iface}=\"wpa_supplicant\"" >> /etc/conf.d/net >+ echo "wpa_supplicant_${iface}=\"-Dnl80211,wext\"" >> /etc/conf.d/net >+ fi >+} >+ > write_net_conf() { > cd /tmp/setup.opts >- echo "" > /etc/conf.d/net >- echo "# This network configuration was written by net-setup" > /etc/conf.d/net >+ echo "" >> /etc/conf.d/net >+ echo "# This network configuration was written by net-setup" >> /etc/conf.d/net > DHCP=$(tail -n 1 ${iface}.DHCP) > case ${DHCP} in > 1) >@@ -336,16 +366,22 @@ done > > dialog --visit-items --title "Network setup" \ > --menu "This script is designed to setup both wired and wireless network settings. All questions below apply to the ${iface} interface only. Choose one option:" \ >- 20 60 7 1 "My network is wireless" 2 "My network is wired" 2> ${iface}.WIRED_WIRELESS >+ 20 60 7 1 "My network is wired" 2 "My network is wireless (Open/WEP)" \ >+ 3 "My network is wireless (WPA-PSK/WPA2-PSK)" 2> ${iface}.WIRED_WIRELESS > WIRED_WIRELESS=$(tail -n 1 ${iface}.WIRED_WIRELESS) > case ${WIRED_WIRELESS} in > 1) >+ config_ip >+ ;; >+ 2) > config_wireless > config_ip > write_wireless_conf > ;; >- 2) >+ 3) >+ config_wpa > config_ip >+ write_wpa_conf > ;; > esac > write_net_conf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 447110
:
404232
|
404234
| 404236