Newer
Older
Import / applications / Photoframe / Research / SMB / jags-0.22.1 / plugins / samba-2.0.7.plugin / umount.sh
@John Ryland John Ryland on 22 Dec 2020 366 bytes import of apps from backup copy of dell-pc
#!/bin/bash
#
# (C) Daniel Sundberg 2000
# This is free software and you may do whatever 
# you want to with this according to the GPL.
#
# This program requires nmblookup, findsmb, 
# grep, cut & sh.
#
smbumount "$1"
rmdir "$1"
echo "rmdir $1"

flag=$(ls "$2")
if [ -z "$flag" ]; then
    rmdir "$2"
    echo "rmdir $2"
else
    echo "Not currently removing $2"
fi