#!/bin/sh DEF_MOUNT_POINT=/docsrv/ TARGET="130.192.239.1" #TARGET=pianeta ANSWER=`ping $TARGET -c 1 -q | grep 0% | cut -d , -f 3` # Check if TARGET is up if [ "$ANSWER" = " 0% loss" ]; then echo "Your local user's password may be requested ..." echo "(sudo /bin/umount $DEF_MOUNT_POINT)" (sudo /bin/umount $DEF_MOUNT_POINT) echo "Unmounted $DEF_MOUNT_POINT" fi