summaryrefslogtreecommitdiff
path: root/app-laptop/hdapsd/files/hdapsd.init
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-04-17 01:49:48 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-04-17 01:49:48 +0200
commit955a9f39aa0b278c6fab7d89d484aeb37fece8b1 (patch)
treecc2596f36840f8b28873142b750a2a202eb10834 /app-laptop/hdapsd/files/hdapsd.init
parentd9ec8413744faaba3543bff9773bdad9786260ab (diff)
downloadoverlay-955a9f39aa0b278c6fab7d89d484aeb37fece8b1.tar.gz
overlay-955a9f39aa0b278c6fab7d89d484aeb37fece8b1.tar.bz2
overlay-955a9f39aa0b278c6fab7d89d484aeb37fece8b1.zip
Removed digests and unused ebuilds
Diffstat (limited to '')
-rwxr-xr-xapp-laptop/hdapsd/files/hdapsd.init49
1 files changed, 0 insertions, 49 deletions
diff --git a/app-laptop/hdapsd/files/hdapsd.init b/app-laptop/hdapsd/files/hdapsd.init
deleted file mode 100755
index a413490..0000000
--- a/app-laptop/hdapsd/files/hdapsd.init
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v2
-
-depend() {
- need localmount
-}
-
-checkconfig() {
- if [[ -z ${DISK} || -z ${THRESHOLD} ]] ; then
- eerror "You should setup DISK and THRESHOLD in /etc/conf.d/hdapsd."
- return 1
- fi
-
- if [[ ! -e /sys/block/${DISK}/queue/protect ]] ; then
- eerror "No protect entry for ${DISK}!"
- eerror "Make sure your kernel is patched with the blk_freeze patch"
- return 1
- fi
-
- # Load the tp_smapi module first
- # This is not a requirement, but it helps hdapsd adaptive mode
- if [[ ! -e /sys/devices/platorm/smapi ]] ; then
- modprobe tp_smapi 2>/dev/null
- fi
-
- if [[ ! -d /sys/devices/platform/hdaps ]]; then
- ebegin "Loading hdaps module"
- modprobe hdaps
- eend $? || return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting Hard Drive Active Protection System daemon"
- start-stop-daemon --start --exec /usr/sbin/hdapsd \
- --pidfile /var/run/hdapsd.pid \
- -- -b -p -d "${DISK}" -s "${THRESHOLD}" ${OPTIONS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping Hard Drive Active Protection System daemon"
- start-stop-daemon --stop --exec /usr/sbin/hdapsd \
- --pidfile /var/run/hdapsd.pid
- eend $?
-}