aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-06-14 15:23:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-14 15:23:35 +0000
commitc55170ce46139801bbad11c62334df0d5e9fa27a (patch)
tree181e150a6ce35f60e10035cb645689b723daf0e3
parentcf023ac1ffecfdcc1997ee7b8e57cacdde62870e (diff)
downloadalpine-conf-c55170ce46139801bbad11c62334df0d5e9fa27a.tar.bz2
alpine-conf-c55170ce46139801bbad11c62334df0d5e9fa27a.tar.xz
setup-interfaces: fix wifi setup
-rw-r--r--setup-interfaces.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index 1d6ac6a..b4121d5 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -123,6 +123,7 @@ find_essids() {
local iface=$1
export essids_list=wlans
# Supports only open or PSK
+ ip link set dev "$iface" up
iwlist $iface scanning | awk -F: '/ESSID/ { printf "%s ",$2 } /Authentication Suites/ \
{ printf ":%s\n",$2 }' | grep -v 802.1x | sort -u >$essids_list
if [ -s $essids_list ]; then
@@ -208,7 +209,7 @@ config_iface() {
echo "raw_device=\"$raw_device\"" >> $conf
fi
if is_wifi $iface; then
- apk add --quiet --no-progress wpa_supplicant || prompt_for_interfaces
+ apk add --quiet --no-progress wireless-tools wpa_supplicant || prompt_for_interfaces
echo "Available wireless networks (scanning):"
if find_essids $iface; then
ask "Type the wireless network name to connect to:"