#!/usr/local/bin/bash
# a small script to mount/umount sharings on my FreeBSD Box. Names of the shares are identical to the directories in /mnt/ftp

arg1="$1";
if [ "$arg1" == "mount" ]; then
for i in $(ls /mnt/ftp/); do 
/usr/sbin/mount_smbfs -N //ROOT@FSERVER/$i /mnt/ftp/"$i";
done
fi
if [ "$arg1" == "umount" ]; then
for i in $(ls /mnt/ftp/); do
/sbin/umount /mnt/ftp/$i;
done
fi
