diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-17 10:42:13 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-17 10:42:13 +0000 |
commit | d5c8c21c491d79a8058b8c2f44bab7274b4500b5 (patch) | |
tree | ae6a25eb6cdabc80fa7eaedfaced0efbfa252ce3 /app-laptop/laptop-mode-tools/files | |
parent | ebuild cleanup. (diff) | |
download | historical-d5c8c21c491d79a8058b8c2f44bab7274b4500b5.tar.gz historical-d5c8c21c491d79a8058b8c2f44bab7274b4500b5.tar.bz2 historical-d5c8c21c491d79a8058b8c2f44bab7274b4500b5.zip |
Version bump.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'app-laptop/laptop-mode-tools/files')
-rw-r--r-- | app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 | 1 | ||||
-rw-r--r-- | app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 new file mode 100644 index 000000000000..b5245843fe8a --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.09 @@ -0,0 +1 @@ +MD5 304ea3ad17402ffdb84d5b79b5f88cdb laptop-mode-tools_1.09.tar.gz 40248 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d new file mode 100644 index 000000000000..09cbbdf721a1 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d @@ -0,0 +1,25 @@ +#!/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.09-init.d,v 1.1 2005/08/17 10:42:13 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 $? +} |