Random Project

Useful, but a bit sloppy

Had to modify the script as shown below so that it wouldn’t alarm if one mount was a subset of another (e.g. /mnt/foo and /mnt/foo_new would alarm, saying “/mnt/foo is mounted several times (2)”

Old line 107:
MOUNTED=`mount | grep $MOUNT | grep $FS | wc -l | tr -s ” “` # execute the command to check the mount…

New line 107:
MOUNTED=`mount | grep “$MOUNT” | grep ” $FS ” | wc -l | tr -s ” “` # execute the command to check the mount…