Files
koreader/platform/kobo/suspend.sh
NiLuJe f9925a8c82 Play with the Kobo suspend script...
Because apparently it's not behaving as it should? IDK...
2015-10-22 14:16:05 +02:00

17 lines
298 B
Bash

#!/bin/sh
export PATH="${PATH}:/sbin:/usr/sbin"
# Disable wifi
if lsmod | grep -q sdio_wifi_pwr ; then
wlarm_le -i eth0 down
ifconfig eth0 down
rmmod -r dhd
rmmod -r sdio_wifi_pwr
fi
# Go to sleep
sync
echo 1 > /sys/power/state-extended
sleep 2 # Because reasons?
echo mem > /sys/power/state