4
# author : Matthias Grimm <matthiasgrimm@users.sourceforge.net>
5
# description : toggle laptop mode in kernel and adjust
6
# memory management buffer flush timeouts
7
# requirements: laptop-mode support in kernel
8
# laptopmode.sh somewhere on your system
11
# --- end of public part -- don't change below this line ---
14
LMODE=/usr/sbin/laptop_mode
16
[ -x $LMODE ] || exit 0
18
if [ -w /proc/sys/vm/laptop_mode ]; then
22
echo "3 " $LMODE "start"
31
/etc/init.d/laptop-mode restart
34
elif [ -x logger ]; then
35
logger -p daemon.error -t laptop-mode "Laptop-mode support missing in kernel."