Changes between Version 14 and Version 15 of SshfsMnt


Ignore:
Timestamp:
Oct 14, 2015, 2:38:05 PM (3 years ago)
Author:
chris
Comment:

scripts updated

Legend:

Unmodified
Added
Removed
Modified
  • SshfsMnt

    v14 v15  
    3838
    3939# the place file systems are to be mounted
    40 MOUNT="/media"
     40MOUNT="/media/sshfs"
    4141if [[ ! -d "$MOUNT" ]]; then
    42   echo "It looks like $MOUNT doesn't exist?"
     42  echo "$MOUNT doesn't exist"
    4343  exit 1
    4444fi
     
    7575DF=$(df | awk -F' ' '{ print $6 }' | grep "$MOUNT/$SERVER")
    7676if [[ $DF ]]; then
    77   echo "It appears that $SERVER is already mounted at $DF?"
    78   exit 1
     77  echo "$SERVER is already mounted at $DF"
     78  # nothing needs to be done,
     79  exit 0
    7980fi
    8081
     
    123124
    124125# the place file systems are to be mounted
    125 MOUNT="/media"
     126MOUNT="/media/sshfs"
    126127if [[ ! -d "$MOUNT" ]]; then
    127128  echo "It looks like $MOUNT doesn't exist?"