Skip to content

Instantly share code, notes, and snippets.

@FrancisVarga
Created August 4, 2014 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancisVarga/a55691a3ebfade9d411b to your computer and use it in GitHub Desktop.
Save FrancisVarga/a55691a3ebfade9d411b to your computer and use it in GitHub Desktop.
mount something
#!/bin/bash
if [ -d "/tmp/build_mnt" ]; then
echo "/tmp/build_mnt already mounted - skip"
else
echo "Mount NAS to /tmp/build_mnt"
mkdir /tmp/build_mnt
mount -t smbfs //{{user}}:{{password}}@{{path}}/build {{mount_point}}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment