Wednesday, December 19, 2012

linux check mount point

SkyHi @ Wednesday, December 19, 2012
if ! mount | grep -q '/media/backups'; then
    echo "/media/backups not mounted"
    exit 1
fi