L Goodwin writes:
> My backup script (sh) works fine except when the
> backup drive (USB Flash drive) is not plugged in. I'm
> using mount_msdosfs to mount the backup drive.
> What is the best way to handle mount_msdosfs error?
> If the drive is not mounted, I want to detect the
> failure and execute error-handling code.
First approximation, using sh:
ls /dev | grep da4s1
if [ $? -eq 0 ];
# drive is available
# drive is not available
(Replace "da4s1" with whatever the flash drive gets created
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"