2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
koreader/platform/cervantes/enable-wifi.sh
Martín Fernández 6a844136cf [Cervantes]: wifi fix & misc improvements. (#4341)
* remove unused setting 'internal_storage_mount_point

use filemanagerutil.getDefaultDir() instead
https://github.com/koreader/koreader/blob/master/frontend/apps/filemanager/filemanagerutil.lua#L15

* more info about device frontlight/naturalLight capabilities

* make stock reader fonts available in KOReader

* remove restore-wifi-async leftovers

* wireless: fix wpa_supplicant configuration:

make it compatible w/ debian wheezy binaries
don't try to run enable-wifi.sh more than once
2018-11-16 10:21:57 +01:00

20 lines
509 B
Bash
Executable File

#!/bin/sh
# 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
if ! lsmod | grep -q 8189fs; then
modprobe 8189fs
sleep 1
fi
ifconfig eth0 up
sleep 1
wpa_supplicant -i eth0 -C /var/run/wpa_supplicant -B -D wext 2>/dev/null