wok-next view laptop-mode-tools/stuff/laptop-mode.sh @ rev 19464

reverting: building this 5-year diff gap didn't work out, user request: http://forum.slitaz.org/topic/gnumeric-110-buggy-how-can-i-get-112
author Erkan Yilmaz <erkan@slitaz.org>
date Mon Oct 24 11:39:42 2016 +0000 (2016-10-24)
parents
children
line source
1 #!/bin/sh
2 #
3 # /etc/rc.d/laptop-mode: start/stop laptop-mode
4 #
6 case $1 in
7 start)
8 [ ! -d /var/run/laptop-mode-tools ] && install -d /var/run/laptop-mode-tools
9 touch /var/run/laptop-mode-tools/enabled
10 /usr/sbin/laptop_mode auto init >/dev/null 2>&1
11 ;;
12 stop)
13 rm -f /var/run/laptop-mode-tools/enabled
14 ;;
15 restart)
16 /usr/sbin/laptop_mode auto init force >/dev/null 2>&1
17 ;;
18 status)
19 /usr/sbin/laptop_mode status
20 ;;
21 *)
22 echo "usage: $0 [start|stop|restart|status]"
23 ;;
24 esac
26 # End of file