#!/bin/sh

if egrep ' ro[, ]' /proc/mounts | egrep -v ' (iso9660|nfs4?|udf|cifs|smbfs|tmpfs) ' ; then
	exit 2
else
	echo "No filesystems mounted read-only"
fi
