From 241f0e7a568d1be2a312b2eb5a4cf02f9e1b3707 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 05 Aug 2014 16:23:17 -0400 Subject: installers/pc: Install wpa-supplicant --- diff --git a/installers/data/pc.sh b/installers/data/pc.sh index 0e97cd5..8e748dc 100644 --- a/installers/data/pc.sh +++ b/installers/data/pc.sh @@ -50,6 +50,7 @@ printf '\n=====================\n\n' printf 'Hostname (e.g. "proteanos"): ' _read -r hostname printf '%s\n' "${hostname}" >/etc/hostname +net_wlan_ifaces=false printf 'Network configuration:\n' _select 'Automatic' 'Manual' if [ "x${select_result}" = 'xManual' ]; then @@ -113,6 +114,7 @@ if [ "x${select_result}" = 'xManual' ]; then "${net_iface}" "${net_iface}" >&3 fi case "${net_iface%%[0-9]}" in wlan) + net_wlan_ifaces=true if ${net_static}; then printf 'Wi-Fi configuration:\n' _select 'Access point' 'Client' @@ -144,6 +146,15 @@ if [ "x${select_result}" = 'xManual' ]; then printf '\n' >&3 done exec 3>&- +else + printf 'Install WPA supplicant:\n' + _select 'Yes' 'No' + if [ "x${select_result}" = 'xYes' ]; then + net_wlan_ifaces=true + fi +fi +if ${net_wlan_ifaces}; then + opkg install wpa-supplicant fi printf '\nSet up users and passwords' -- cgit v0.9.1