Skip to content

Commit

Permalink
Update mr_info.sh: more info if microraid is mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullaxx committed Apr 30, 2020
1 parent 819ccad commit de4558c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mr_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ mr_info()
echo -n "${raid_array[0]} :"
${MDBIN} --detail ${RAIDDEV} | grep 'State :' | cut -d: -f2-
grep -A1 -w "${raid_array[0]}" /proc/mdstat

if mount | grep -qw ${raid_array[0]}; then
echo
echo "${NAME} appears to be mounted: "
mount | grep ${raid_array[0]}
fi
}

set -e
Expand Down

0 comments on commit de4558c

Please sign in to comment.