summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-07-19 18:26:27 +0000
committerRoy Marples <uberlord@gentoo.org>2006-07-19 18:26:27 +0000
commit1f7000101ed415687c04897376a90ef4d0cb998b (patch)
tree9fee0a8c1348ef6ef9793c054f35529662f82397 /app-laptop/laptop-mode-tools/files
parentStable on hppa. (diff)
downloadgentoo-2-1f7000101ed415687c04897376a90ef4d0cb998b.tar.gz
gentoo-2-1f7000101ed415687c04897376a90ef4d0cb998b.tar.bz2
gentoo-2-1f7000101ed415687c04897376a90ef4d0cb998b.zip
Punt old file
(Portage version: 2.1.1_pre3-r1)
Diffstat (limited to 'app-laptop/laptop-mode-tools/files')
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.31-init.d35
1 files changed, 0 insertions, 35 deletions
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
deleted file mode 100644
index ae50d4da5381..000000000000
--- a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.31-init.d
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/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 ${?}
-}