Hi,

On Wed, Jun 10, 2009 at 17:57, Holger Parplies<wb...@parplies.de> wrote:
> note that you could even set the PingCmd to a shell script that checks
> whether the disk is mounted (eg. '[ -f /path/to/usbdisk/.thisistheusbdisk ]'
> if you have a file '.thisistheusbdisk' in the root of your USB disk's file
> system - please ask if you need more details).

You can use the "mountpoint" command (present in RHEL 5 or SuSE 10) to
test if that path is a mount point for some volume.

mountpoint -q /path/to/usbdisk
(will set $? to 0 if it's mounted, non-zero otherwise)

No need to create .thisistheusbdisk files inside your USB then.

HTH,
Filipe

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to