summaryrefslogtreecommitdiffstats
path: root/installers
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-05 16:23:17 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-05 16:23:17 (EDT)
commit241f0e7a568d1be2a312b2eb5a4cf02f9e1b3707 (patch)
treed54d28f70aacc880a5c16e3e052dca26542167e2 /installers
parent7275bbd1f522f099489479ca18c7ca4758ffc17a (diff)
installers/pc: Install wpa-supplicant
Diffstat (limited to 'installers')
-rw-r--r--installers/data/pc.sh11
1 files changed, 11 insertions, 0 deletions
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'