mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
e8c01274f4
* enormous coding style update * update luajit-launcher All changes are formatting only except for: * new more correct pushd/popd style * keeps useful indentation * prevents execution of commands when pushd failed (cf. https://github.com/koalaman/shellcheck/wiki/SC2164 and https://github.com/koalaman/shellcheck/issues/863) ``` pushd some_dir && { command1 command2 } || exit popd ```
16 lines
486 B
Bash
16 lines
486 B
Bash
#!/bin/sh
|
|
|
|
# Load wifi modules and enable wifi.
|
|
|
|
lsmod | grep -q sdio_wifi_pwr || insmod "/drivers/${PLATFORM}/wifi/sdio_wifi_pwr.ko"
|
|
# WIFI_MODULE_PATH = /drivers/$PLATFORM/wifi/$WIFI_MODULE.ko
|
|
lsmod | grep -q "${WIFI_MODULE}" || insmod "${WIFI_MODULE_PATH}"
|
|
sleep 1
|
|
|
|
ifconfig eth0 up
|
|
wlarm_le -i eth0 up
|
|
|
|
pidof wpa_supplicant >/dev/null \
|
|
|| env -u LD_LIBRARY_PATH \
|
|
wpa_supplicant -D wext -s -ieth0 -O /var/run/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -B
|