summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-02-18 23:27:41 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-02-18 23:27:41 +0000
commit3a3f563eb63785bfb05c9e345da8233eca9b08c9 (patch)
tree48e0cdd59157b96b49f5b5510deeb524b328b9b3 /app-laptop/laptop-mode-tools/files
parentVersion bump. (diff)
downloadgentoo-2-3a3f563eb63785bfb05c9e345da8233eca9b08c9.tar.gz
gentoo-2-3a3f563eb63785bfb05c9e345da8233eca9b08c9.tar.bz2
gentoo-2-3a3f563eb63785bfb05c9e345da8233eca9b08c9.zip
Version bump.
(Portage version: 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.271
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.27-init.d35
2 files changed, 36 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.27 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.27
new file mode 100644
index 000000000000..e4d6e759522c
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.27
@@ -0,0 +1 @@
+MD5 99017d9741e96c97a9388388153516ac laptop-mode-tools_1.27.tar.gz 66268
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.27-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.27-init.d
new file mode 100644
index 000000000000..5afc7d864507
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.27-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.27-init.d,v 1.1 2006/02/18 23:27:41 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 ${?}
+}