mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
* Add bash scripts to control WIFI / IP, so we can share them with frontend/device/kobo/device.lua. * add test cases
13 lines
393 B
Bash
13 lines
393 B
Bash
#!/bin/sh
|
|
|
|
# Load wifi modules and enable wifi.
|
|
|
|
lsmod | grep -q sdio_wifi_pwr || insmod /drivers/$PLATFORM/wifi/sdio_wifi_pwr.ko
|
|
lsmod | grep -q dhd || insmod /drivers/$PLATFORM/wifi/dhd.ko
|
|
sleep 1
|
|
|
|
ifconfig eth0 up
|
|
wlarm_le -i eth0 up
|
|
|
|
pidof wpa_supplicant >/dev/null || env -u LD_LIBRARY_PATH wpa_supplicant -s -ieth0 -O /var/run/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -B
|