mirror of
https://github.com/miskcoo/ugreen_dx4600_leds_controller.git
synced 2025-07-23 12:23:09 +02:00
Don't mark drives in standby as failed (#59)
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
The standby return code of smartctl is updated to 0 to avoid detecting it as a failure.
This commit is contained in:
@@ -274,7 +274,8 @@ if [ "$CHECK_SMART" = true ]; then
|
||||
|
||||
dev=${devices[$led]}
|
||||
|
||||
/usr/sbin/smartctl -H /dev/${dev} -n standby,1 &> /dev/null
|
||||
# read the smart status return code, but ignore if the drive is on standby
|
||||
/usr/sbin/smartctl -H /dev/${dev} -n standby,0 &> /dev/null
|
||||
RET=$?
|
||||
|
||||
# check return code for critical errors (any bit set except bit 5)
|
||||
|
Reference in New Issue
Block a user