diff options
Diffstat (limited to 'community/hdapsd/hdapsd.wrapper')
-rw-r--r-- | community/hdapsd/hdapsd.wrapper | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/hdapsd/hdapsd.wrapper b/community/hdapsd/hdapsd.wrapper new file mode 100644 index 000000000..d74fd272d --- /dev/null +++ b/community/hdapsd/hdapsd.wrapper @@ -0,0 +1,20 @@ +#!/bin/bash + +[ -f /etc/conf.d/hdapsd ] && source /etc/conf.d/hdapsd + +OPTS="-bp" + +if [ -z "${DEVICE}" ]; then + OPTS="${OPTS} -d sda" +else + for i in ${DEVICE[@]}; do + OPTS="${OPTS} -d ${i}" + done +fi + +[ ! -z "${SENSITIVITY}" ] && OPTS="${OPTS} -s ${SENSITIVITY}" +[ "${ADAPTIVE}" == "yes" ] && OPTS="${OPTS} -a" +[ "${SYSLOG}" == "yes" ] && OPTS="${OPTS} -l" +[ "${FORCE}" == "yes" ] && OPTS="${OPTS} -f" + +/usr/sbin/hdapsd ${OPTS} |