2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/platform/kobo/suspend.sh
2015-04-26 20:46:30 +02:00

16 lines
271 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
echo mem > /sys/power/state