2016-09-01 07:05:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Load wifi modules and enable wifi.
|
|
|
|
|
|
|
|
lsmod | grep -q sdio_wifi_pwr || insmod /drivers/$PLATFORM/wifi/sdio_wifi_pwr.ko
|
2017-02-20 08:11:16 +00:00
|
|
|
# WIFI_MODULE_PATH = /drivers/$PLATFORM/wifi/$WIFI_MODULE.ko
|
|
|
|
lsmod | grep -q $WIFI_MODULE || insmod $WIFI_MODULE_PATH
|
2016-09-01 07:05:40 +00:00
|
|
|
sleep 1
|
|
|
|
|
|
|
|
ifconfig eth0 up
|
|
|
|
wlarm_le -i eth0 up
|
|
|
|
|
2016-10-18 05:26:44 +00:00
|
|
|
pidof wpa_supplicant >/dev/null || \
|
|
|
|
env -u LD_LIBRARY_PATH \
|
2017-02-26 20:29:59 +00:00
|
|
|
wpa_supplicant -D wext -s -ieth0 -O /var/run/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -B
|