diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2016-01-28 13:43:57 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-01-28 13:46:25 -0500 |
commit | 5c79004d714afbcc32715669e63d9722be884f6a (patch) | |
tree | f7629ece5d4e8cba00d4b935922c61dbd7f144cd /app-laptop/hdapsd/files | |
parent | media-libs/openal: remove unused usedescs (diff) | |
download | gentoo-5c79004d714afbcc32715669e63d9722be884f6a.tar.gz gentoo-5c79004d714afbcc32715669e63d9722be884f6a.tar.bz2 gentoo-5c79004d714afbcc32715669e63d9722be884f6a.zip |
app-laptop/hdapsd: remove old 20090401 version and its files.
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-laptop/hdapsd/files')
-rw-r--r-- | app-laptop/hdapsd/files/hdapsd.conf.3 | 12 | ||||
-rw-r--r-- | app-laptop/hdapsd/files/hdapsd.init.3 | 69 |
2 files changed, 0 insertions, 81 deletions
diff --git a/app-laptop/hdapsd/files/hdapsd.conf.3 b/app-laptop/hdapsd/files/hdapsd.conf.3 deleted file mode 100644 index 509d3afa2013..000000000000 --- a/app-laptop/hdapsd/files/hdapsd.conf.3 +++ /dev/null @@ -1,12 +0,0 @@ -# The list of the disk devices that hdapsd should monitor. -# Usually this is 'hda', 'sda' or 'hda sda'. -# hdaps will auto-devices if empty -#DISKLIST="sda" - -# hdapsd sensitivity -# The lower the threshold is the earlier -# the heads are parked when the laptop is shaked -THRESHOLD="10" - -# Set any extra options here, like -a for Adaptive mode -OPTIONS="-a" diff --git a/app-laptop/hdapsd/files/hdapsd.init.3 b/app-laptop/hdapsd/files/hdapsd.init.3 deleted file mode 100644 index d7894fbc8ada..000000000000 --- a/app-laptop/hdapsd/files/hdapsd.init.3 +++ /dev/null @@ -1,69 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 - -depend() { - need localmount -} - -checkconfig() { - if [ -n "${DISK}" ]; then - ewarn "Please migrate DISK to DISKLIST in /etc/conf.d/hdapsd." - DISKLIST=${DISK} - fi - - if [ -z "${THRESHOLD}" ] ; then - eerror "You should setup THRESHOLD in /etc/conf.d/hdapsd." - return 1 - fi - - #empty DISKLIST is allowed as well - for DISK in ${DISKLIST}; do - if [ ! -b /dev/${DISK} ]; then - eerror "Could not find disk /dev/${DISK}!" - eerror "Adjust the DISK setting in /etc/conf.d/hdapsd" - return 1 - fi - - if [ ! -e /sys/block/${DISK}/queue/protect ] && [ ! -e /sys/block/${DISK}/device/unload_heads ] ; then - eerror "No protect entry for ${DISK}!" - eerror "Make sure your kernel is patched with the blk_freeze patch" - return 1 - fi - done - - # Load the tp_smapi module first - # This is not a requirement, but it helps hdapsd adaptive mode - if [ ! -e /sys/devices/platform/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 - - local DISKOPTS DISK - for DISK in ${DISKLIST}; do - DISKOPTS="${DISKOPTS} -d ${DISK}" - done - - ebegin "Starting Hard Drive Active Protection System daemon" - start-stop-daemon --start --exec /usr/sbin/hdapsd \ - --pidfile /var/run/hdapsd.pid \ - -- --syslog --background --pidfile \ - ${DISKOPTS} --sensitivity "${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 $? -} |