diff --git a/CHANGELOG.md b/CHANGELOG.md index 7440772..f122695 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,4 +44,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.6.0] - 2014-11-18 ### Changed - HP Finally changed the SCSI output of their latest smart array controllers, updated script to be compatible with both versions -- Thanks to Paul Yates for reporting this and providing sample output \ No newline at end of file +- Thanks to Paul Yates for reporting this and providing sample output +## [1.7.0] - 2014-11-19 +### Added +- Added support for FreeBSD 10.1 and later +- Thanks to Marc Peters for reporting this diff --git a/check_smartarray.sh b/check_smartarray.sh index 1a40f35..936592a 100644 --- a/check_smartarray.sh +++ b/check_smartarray.sh @@ -25,7 +25,7 @@ do ERRORSTRING="${ERRORSTRING} / ${DEVICENAME}: unknown state" if ! [ "${ERR}" = 2 ];then ERR=3;fi else - case $(echo ${DEVICESTRING}|tr [:upper:] [:lower:]|sed -e s/'\>.*'//|sed -Ee 's/.*(rea|int|exp|rec|fai|ok).*/\1/') in + case $(echo ${DEVICESTRING}|tr [:upper:] [:lower:]|sed -Ee 's/.*(rea|int|exp|rec|fai|ok).*/\1/') in int) ERR=2 ERRORSTRING="${ERRORSTRING} / ${DEVICENAME}: DEGRADED"