#!/bin/bash
#                       /usr/local/bin/raidalert
#  http://crystalfaeries.net/posix/bin/raidalert
# celeste:crystalfaery 2016-07-17 20:29:51+00:00
# watch raid for errors=remount-ro (yay flakey hardware!)

until grep /dev/md127 /etc/mtab | grep " ro" >& /dev/null
do
	sleep 60
done
/usr/local/bin/alert 'pixy:/home/raid READONLY!'



syntax highlighted by Code2HTML, v. 0.9.1