summaryrefslogtreecommitdiffstats
path: root/installers
diff options
context:
space:
mode:
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'