mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
wireless: make QBookApp happy across switches
This commit is contained in:
committed by
Frans de Jonge
parent
6424176922
commit
6c6bec35ec
@@ -33,8 +33,11 @@ if [ -b /dev/mmcblk1p1 ]; then
|
||||
mount /dev/mmcblk1p1 /mnt/sd
|
||||
fi
|
||||
|
||||
# remove wireless module since it wastes battery.
|
||||
if lsmod | grep -q 8189fs; then
|
||||
# stop connman daemon, KOReader will use wpa_supplicant directly.
|
||||
[ -x /etc/init.d/connman ] && /etc/init.d/connman stop
|
||||
|
||||
# for Cervantes 4 unload realtek module.
|
||||
if [ "$PCB_ID" -eq 68 ] && lsmod | grep -q 8189fs; then
|
||||
modprobe -r 8189fs
|
||||
fi
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ fi
|
||||
|
||||
if [ "${STANDALONE}" != "true" ]; then
|
||||
stopapp.sh >/dev/null 2>&1
|
||||
[ -x /etc/init.d/connman ] && /etc/init.d/connman stop
|
||||
fi
|
||||
|
||||
RETURN_VALUE=85
|
||||
@@ -85,5 +86,6 @@ while [ "${RETURN_VALUE}" -eq 85 ]; do
|
||||
done
|
||||
|
||||
if [ "${STANDALONE}" != "true" ]; then
|
||||
[ -x /etc/init.d/connman ] && /etc/init.d/connman start
|
||||
restart.sh >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user