Skip to content

Instantly share code, notes, and snippets.

@BinaryMuse
Created July 14, 2010 14:15
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 BinaryMuse/475457 to your computer and use it in GitHub Desktop.
Save BinaryMuse/475457 to your computer and use it in GitHub Desktop.
fpumount
#!/bin/bash
# fpu-mount
# parameter one should be the share
# paramater two should be the mountpoint
# the mountpoint will be created if it doesn't exist
SHARE=$1
MOUNTPOINT=$2
if [ ! -d "$MOUNTPOINT" ]; then
mkdir -p "$MOUNTPOINT"
fi
mount_smbfs //fpu\;brandon%20tilley:`domain-cred`@"$SHARE" "$MOUNTPOINT"
#!/bin/bash
# domain-cred
security 2>&1 >/dev/null find-generic-password -gs fpu-domain | cut -d '"' -f 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment