zpool
output changed from FreeNAS version 11.0 to 11.1, breaking our parsing of the
scrubErrors and
scrubDate variables in the
zpool_status.sh
script. Added a conditional to check the FreeNAS version and parse these values accordingly.
We obtain the FreeBSD version using
uname
, as suggested by user Chris Moore here on the FreeNAS forum.
uname -K
gives 7-digit OS release and version, e.g.:
Code:
FreeBSD 11.0 --> 1100512
FreeBSD 11.1 --> 1101505