mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
265 B
Bash
16 lines
265 B
Bash
11 years ago
|
#!/bin/sh
|
||
|
export PATH=$PATH:/sbin:/usr/sbin
|
||
|
|
||
11 years ago
|
#disable wifi
|
||
10 years ago
|
if lsmod | grep -q sdio_wifi_pwr ; then
|
||
11 years ago
|
wlarm_le -i eth0 down
|
||
|
ifconfig eth0 down
|
||
10 years ago
|
rmmod -r dhd
|
||
|
rmmod -r sdio_wifi_pwr
|
||
11 years ago
|
fi
|
||
|
|
||
11 years ago
|
#go to sleep
|
||
11 years ago
|
sync
|
||
|
echo 1 > /sys/power/state-extended
|
||
|
echo mem > /sys/power/state
|