summaryrefslogtreecommitdiff
path: root/sys-apps/linux-misc-apps/files
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-02-13 19:47:38 +0100
committerKarel Kočí <cynerd@email.cz>2022-02-13 19:47:38 +0100
commit9d495cc6cb73cddda241b9923f1bac52ea7cd351 (patch)
tree8d4b7be742d82f5cfdbb4d67d142f2d1fe5fc9b3 /sys-apps/linux-misc-apps/files
parentf7ab7a6f67e8d3d50820b99f708086968451e1e8 (diff)
downloadgentoo-personal-overlay-9d495cc6cb73cddda241b9923f1bac52ea7cd351.tar.gz
gentoo-personal-overlay-9d495cc6cb73cddda241b9923f1bac52ea7cd351.tar.bz2
gentoo-personal-overlay-9d495cc6cb73cddda241b9923f1bac52ea7cd351.zip
sys-apps/linux-misc-apps: remove
The newer version is in upstream.
Diffstat (limited to 'sys-apps/linux-misc-apps/files')
-rw-r--r--sys-apps/linux-misc-apps/files/freefall.confd6
-rw-r--r--sys-apps/linux-misc-apps/files/freefall.initd44
-rw-r--r--sys-apps/linux-misc-apps/files/hpfall.confd6
-rw-r--r--sys-apps/linux-misc-apps/files/hpfall.initd44
4 files changed, 0 insertions, 100 deletions
diff --git a/sys-apps/linux-misc-apps/files/freefall.confd b/sys-apps/linux-misc-apps/files/freefall.confd
deleted file mode 100644
index c082615..0000000
--- a/sys-apps/linux-misc-apps/files/freefall.confd
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/freefall
-
-# The name of the disk device that hpfall should protect.
-# Usually this is 'sda' or 'hda' the primary master.
-
-DISK="sda"
diff --git a/sys-apps/linux-misc-apps/files/freefall.initd b/sys-apps/linux-misc-apps/files/freefall.initd
deleted file mode 100644
index d0c896e..0000000
--- a/sys-apps/linux-misc-apps/files/freefall.initd
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2012-2014 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/freefall 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/freefall"
- 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/freefall /dev/${DISK}
- eend $?
-}
-
-stop() {
- ebegin "Stopping active hard-drive protection daemon"
- start-stop-daemon --stop --quiet \
- --exec /usr/sbin/freefall
- eend $?
-}
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 4f3451b..0000000
--- 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 8b49306..0000000
--- 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 $?
-}