diff options
Diffstat (limited to 'app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d')
-rw-r--r-- | app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d deleted file mode 100644 index ed5f0ea6d356..000000000000 --- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.11-init.d,v 1.1 2005/10/29 19:00:42 brix Exp $ - -checkconfig() { - if [ ! -f /proc/sys/vm/laptop_mode ]; then - eerror "Kernel does not support laptop_mode" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting laptop_mode" - touch /var/run/laptop-mode-enabled && /usr/sbin/laptop_mode auto &> /dev/null - eend $? -} - -stop() { - ebegin "Stopping laptop_mode" - /usr/sbin/laptop_mode stop &> /dev/null && rm -f /var/run/laptop-mode-enabled - eend $? -} |