mirror of https://github.com/koreader/koreader
Remarkable1 wifi (#7216)
* add wifi support to Rm1 * remarkable: common suspend for all modelspull/7235/head
parent
68a5fcdbc1
commit
4a89c93290
@ -1,20 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
read -r MACHINE_TYPE <"/sys/devices/soc0/machine"
|
||||
|
||||
if [ "reMarkable 2.0" = "${MACHINE_TYPE}" ]; then
|
||||
if lsmod | grep -q brcmfmac; then
|
||||
ifconfig wlan0 up
|
||||
else
|
||||
if ! lsmod | grep -q brcmfmac; then
|
||||
modprobe brcmfmac
|
||||
fi
|
||||
fi
|
||||
|
||||
# clean stop (if it's running) of main wpa_supplicant service, used by xochitl
|
||||
systemctl stop wpa_supplicant
|
||||
# clean stop of non-service wpa_supplicant, if running
|
||||
wpa_cli terminate 2>/dev/null
|
||||
# clean stop (if it's running) of main wpa_supplicant service, used by xochitl
|
||||
systemctl stop wpa_supplicant
|
||||
|
||||
sleep 1
|
||||
# clean stop of non-service wpa_supplicant, if running
|
||||
wpa_cli terminate 2>/dev/null
|
||||
|
||||
wpa_supplicant -i wlan0 -C /var/run/wpa_supplicant -B 2>/dev/null
|
||||
fi
|
||||
sleep 1
|
||||
|
||||
ifconfig wlan0 up
|
||||
wpa_supplicant -i wlan0 -C /var/run/wpa_supplicant -B 2>/dev/null
|
||||
|
Loading…
Reference in New Issue