diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-17 13:59:41 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-17 13:59:41 +0000 |
commit | a6eb2364dd0743be94c689ec9fee713a0ae81ed7 (patch) | |
tree | 47907f1abe6f2f2018ffe9fcf9114510dc78d16f /app-laptop/laptop-mode-tools/files | |
parent | Set Distribution to gentoo, thanks to Florian Zierer. (diff) | |
download | historical-a6eb2364dd0743be94c689ec9fee713a0ae81ed7.tar.gz historical-a6eb2364dd0743be94c689ec9fee713a0ae81ed7.tar.bz2 historical-a6eb2364dd0743be94c689ec9fee713a0ae81ed7.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.10 | 1 | ||||
-rw-r--r-- | app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-init.d | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.10 b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.10 new file mode 100644 index 000000000000..5f8de2873de1 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/digest-laptop-mode-tools-1.10 @@ -0,0 +1 @@ +MD5 cf67d837efe75dcf082a10df6897add5 laptop-mode-tools_1.10.tar.gz 40351 diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-init.d b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-init.d new file mode 100644 index 000000000000..2a3826fb6693 --- /dev/null +++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.10-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.10-init.d,v 1.1 2005/08/17 13:59:41 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 $? +} |