Hi, I have a bash script to mount some network drives like:
mount //machine/share /home/roger/network/machine/share -t cifs -o credentials= . . .
which is all good except if it is run a second time (for example, one of the machines wasn't turned on the first time it was run) I'll end up with those shares that were mounted the first time mounted an additional time (as shown by the mount command). How might I be able to modify this to be a little more intelligent, and go "if the share is already mounted, ignore the following mount command, otherwise, do the mount command".
Cheers, Roger
