2018-10-31 22:48:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-11-16 09:21:57 +00:00
|
|
|
# Debian Wheezy ships an old wpa_supplicant binary (1.0.3). Please refer to
|
|
|
|
# https://manpages.debian.org/wheezy/wpasupplicant/wpa_supplicant.8.en.html
|
|
|
|
# to see which command line options are available.
|
|
|
|
|
|
|
|
# Do not run this script twice (ie: when no wireless is available or wireless
|
|
|
|
# association to ap failed.
|
|
|
|
./disable-wifi.sh
|
2018-10-31 22:48:36 +00:00
|
|
|
|
|
|
|
if ! lsmod | grep -q 8189fs; then
|
|
|
|
modprobe 8189fs
|
|
|
|
sleep 1
|
|
|
|
fi
|
|
|
|
|
2018-11-10 12:17:41 +00:00
|
|
|
ifconfig eth0 up
|
|
|
|
sleep 1
|
|
|
|
|
2018-11-16 09:21:57 +00:00
|
|
|
wpa_supplicant -i eth0 -C /var/run/wpa_supplicant -B -D wext 2>/dev/null
|