From f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 30 Sep 2020 17:27:54 +0100 Subject: gentoo resync : 30.09.2020 --- sys-apps/linux-misc-apps/files/hpfall.confd | 6 ---- sys-apps/linux-misc-apps/files/hpfall.initd | 44 ----------------------------- 2 files changed, 50 deletions(-) delete mode 100644 sys-apps/linux-misc-apps/files/hpfall.confd delete mode 100644 sys-apps/linux-misc-apps/files/hpfall.initd (limited to 'sys-apps/linux-misc-apps/files') diff --git a/sys-apps/linux-misc-apps/files/hpfall.confd b/sys-apps/linux-misc-apps/files/hpfall.confd deleted file mode 100644 index 4f3451b0bff6..000000000000 --- a/sys-apps/linux-misc-apps/files/hpfall.confd +++ /dev/null @@ -1,6 +0,0 @@ -# /etc/conf.d/hpfall - -# The name of the disk device that hpfall should protect. -# Usually this is 'sda' or 'hda' the primary master. - -DISK="sda" \ No newline at end of file diff --git a/sys-apps/linux-misc-apps/files/hpfall.initd b/sys-apps/linux-misc-apps/files/hpfall.initd deleted file mode 100644 index 8b4930612c4d..000000000000 --- a/sys-apps/linux-misc-apps/files/hpfall.initd +++ /dev/null @@ -1,44 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -checkconfig() { - if [ -z "$DISK" ] ; then - eerror "You need to setup DISK in /etc/conf.d/hpfall first" - return 1 - fi - - if [ ! -b /dev/${DISK} ]; then - eerror "Could not find disk /dev/${DISK}!" - eerror "Adjust the DISK setting in /etc/conf.d/hpfall" - return 1 - fi - - if [ ! -e /sys/block/${DISK}/device/unload_heads ] ; then - eerror "No protect entry for ${DISK}!" - eerror "Kernel 2.6.28 and above is required" - return 1 - fi - - if [ ! -c /dev/freefall ]; then - ebegin "Loading hp_accel module" - modprobe hp_accel - eend $? || return 1 - fi -} - -start () { - checkconfig || return 1 - - ebegin "Starting active hard-drive protection daemon" - start-stop-daemon --start --quiet \ - --exec /usr/sbin/hpfall /dev/${DISK} - eend $? -} - -stop() { - ebegin "Stopping active hard-drive protection daemon" - start-stop-daemon --stop --quiet \ - --exec /usr/sbin/hpfall - eend $? -} -- cgit v1.2.3