if ! mount | grep -q '/media/backups'; then
echo "/media/backups not mounted"
exit 1
fi
Wednesday, December 19, 2012
linux check mount point
Category:
bash
— SkyHi @ Wednesday, December 19, 2012
if ! mount | grep -q '/media/backups'; then
echo "/media/backups not mounted"
exit 1
fi