summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-08-17 10:42:13 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-08-17 10:42:13 +0000
commita4af314ee73f1d70eab25fdc785ac851104e510b (patch)
tree99b8812d6ce482fc78b8615d735d69ebe48ce2a8 /app-laptop/laptop-mode-tools/files
parentebuild cleanup. (diff)
downloadgentoo-2-a4af314ee73f1d70eab25fdc785ac851104e510b.tar.gz
gentoo-2-a4af314ee73f1d70eab25fdc785ac851104e510b.tar.bz2
gentoo-2-a4af314ee73f1d70eab25fdc785ac851104e510b.zip
Version bump.
(Portage version: 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.091
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.09-init.d25
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 $?
+}