2
0
mirror of https://github.com/koreader/koreader synced 2024-11-02 15:40:16 +00:00
koreader/platform/kobo/suspend.sh

16 lines
265 B
Bash
Raw Normal View History

#!/bin/sh
export PATH=$PATH:/sbin:/usr/sbin
2013-09-09 10:30:27 +00:00
#disable wifi
if lsmod | grep -q sdio_wifi_pwr ; then
wlarm_le -i eth0 down
ifconfig eth0 down
2014-07-19 14:12:57 +00:00
rmmod -r dhd
rmmod -r sdio_wifi_pwr
fi
2013-09-09 10:30:27 +00:00
#go to sleep
sync
echo 1 > /sys/power/state-extended
echo mem > /sys/power/state