On Fri 13 Sep 2013 13:15:36 NZST +1200, C. Falconer wrote:

> I've got a similar dodge, using mountpoint permissions, spefically
> the immutable bit on the directory when nothing is mounted.

Other options

if [ `ls -1a "$backdir" | wc -l` -le 2 ]; then
  echo "Dude, mount the backup disk first!"
  exit 9
fi
# Assuming that the backup disk has at least one dir/file.


if ! grep -q " $backdir "; then
  echo "Dude, mount the backup disk first!"
  exit 9
fi

> Does bottom posting in reply to a top post make it better or worse?

Bottom posting always makes things better. Just delete any posting of
lazy bums after scrolling down 2 screenfuls of quoted text. When they
don't get replies, they might get the point...

Volker

-- 
Volker Kuhlmann
http://volker.dnsalias.net/     Please do not CC list postings to me.
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to