2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/kobo_suspend.sh
2013-09-09 12:30:27 +02:00

16 lines
278 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
/sbin/rmmod -r dhd
/sbin/rmmod -r sdio_wifi_pwr
fi
#go to sleep
sync
echo 1 > /sys/power/state-extended
echo mem > /sys/power/state