#!/bin/sh # # /etc/rc.d/services/laptop-mode.service: laptop_mode(8) service file # case $1 in start) touch /var/run/laptop-mode-enabled /usr/sbin/laptop_mode auto init ;; stop) rm -f /var/run/laptop-mode-enabled ;; restart) /usr/sbin/laptop_mode auto init force ;; status) /usr/sbin/laptop_mode status ;; *) echo "usage: $0 [start|stop|restart|status]" ;; esac # EOF