aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/smartmontools
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-05-10 14:17:23 +0800
committermiwi <miwi@FreeBSD.org>2010-05-10 14:17:23 +0800
commite91a15dc3c44df86cb1677e3ad8c89f001bbd10f (patch)
tree20115a55886f2d8b62c48c8ac8d60f528d6eda14 /sysutils/smartmontools
parent280fa47abbd42b23c6d889c0d6e120e8bcafbd9b (diff)
downloadfreebsd-ports-gnome-e91a15dc3c44df86cb1677e3ad8c89f001bbd10f.tar.gz
freebsd-ports-gnome-e91a15dc3c44df86cb1677e3ad8c89f001bbd10f.tar.zst
freebsd-ports-gnome-e91a15dc3c44df86cb1677e3ad8c89f001bbd10f.zip
- Add support for periodic ciss devices health monitoring
PR: 146100 Submitted by: Ondra Knezour <knezour@weboutsourcing.cz> Approved by: maintainer
Diffstat (limited to 'sysutils/smartmontools')
-rw-r--r--sysutils/smartmontools/files/smart.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in
index 17a85547a968..005eeff00579 100644
--- a/sysutils/smartmontools/files/smart.in
+++ b/sysutils/smartmontools/files/smart.in
@@ -40,14 +40,16 @@ case "${daily_status_smart_enable}" in
device="${device#/dev/}"
devflags=""
case ${device} in
- cd*) continue
+ cd*) ;;
+ tw[ae]*) devflags="-d3ware,${device##tw[ae][0-9]*,}"
+ device="/dev/${device%,[0-9]*}"
;;
- tw[ae]*) devflags="-d3ware,${device#tw[ae][0-9]*,}"
- device="/dev/${device%,[0-9]*}"
+ ciss*) devflags="-dcciss,${device##ciss[0-9]*,}"
+ device="/dev/${device%,[0-9]*}"
;;
/*) ;;
*) device="/dev/${device}"
- ;;
+ ;;
esac
if [ -e ${device} ]; then