diff --git a/tools/mount.sh b/tools/mount.sh new file mode 100644 index 0000000..cfaa45f --- /dev/null +++ b/tools/mount.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +ORIGIN=`pwd` + +if [ "$(id -u)" -ne 0 ]; then + echo "Please run as root" + exit +fi + +cd /etc/credentials +for file in ./* do + echo "# mounting $file" + . $file + mount -t cifs //$domain/backup /mnt/$file -o credentials=/etc/credentials/$file +fi + +cd $ORIGIN