wireless: make QBookApp happy across switches

pull/4325/head
Martín Fdez 6 years ago committed by Frans de Jonge
parent 6424176922
commit 6c6bec35ec

@ -33,8 +33,11 @@ if [ -b /dev/mmcblk1p1 ]; then
mount /dev/mmcblk1p1 /mnt/sd mount /dev/mmcblk1p1 /mnt/sd
fi fi
# remove wireless module since it wastes battery. # stop connman daemon, KOReader will use wpa_supplicant directly.
if lsmod | grep -q 8189fs; then [ -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 modprobe -r 8189fs
fi fi

@ -76,6 +76,7 @@ fi
if [ "${STANDALONE}" != "true" ]; then if [ "${STANDALONE}" != "true" ]; then
stopapp.sh >/dev/null 2>&1 stopapp.sh >/dev/null 2>&1
[ -x /etc/init.d/connman ] && /etc/init.d/connman stop
fi fi
RETURN_VALUE=85 RETURN_VALUE=85
@ -85,5 +86,6 @@ while [ "${RETURN_VALUE}" -eq 85 ]; do
done done
if [ "${STANDALONE}" != "true" ]; then if [ "${STANDALONE}" != "true" ]; then
[ -x /etc/init.d/connman ] && /etc/init.d/connman start
restart.sh >/dev/null 2>&1 restart.sh >/dev/null 2>&1
fi fi

Loading…
Cancel
Save