summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-04-18 09:56:24 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-04-18 09:56:24 +0000
commit7c5a41a23ef6c73510d013266e4873e5ffd33302 (patch)
tree3110915af9f336299be99646c92a7835215d0e48 /app-laptop/laptop-mode-tools/files
parentVersion bump. (diff)
downloadhistorical-7c5a41a23ef6c73510d013266e4873e5ffd33302.tar.gz
historical-7c5a41a23ef6c73510d013266e4873e5ffd33302.tar.bz2
historical-7c5a41a23ef6c73510d013266e4873e5ffd33302.zip
Version bump.
Package-Manager: portage-2.0.54
Diffstat (limited to 'app-laptop/laptop-mode-tools/files')
-rw-r--r--app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.311
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.31-init.d35
2 files changed, 36 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.31 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.31
new file mode 100644
index 000000000000..f041c68ad7fa
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.31
@@ -0,0 +1 @@
+MD5 a332179ae046292b232234eb444b2122 laptop-mode-tools_1.31.tar.gz 86554
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.31-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.31-init.d
new file mode 100644
index 000000000000..ae50d4da5381
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.31-init.d
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2006 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.31-init.d,v 1.1 2006/04/18 09:56:24 brix Exp $
+
+opts="${opts} reload"
+
+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 init &> /dev/null
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping laptop_mode"
+ rm -f /var/run/laptop-mode-enabled
+ /usr/sbin/laptop_mode stop init &> /dev/null
+ eend ${?}
+}
+
+reload() {
+ ebegin "Restarting laptop_mode"
+ /usr/sbin/laptop_mode auto init force &> /dev/null
+ eend ${?}
+}