Created
July 14, 2010 14:15
-
-
Save BinaryMuse/475457 to your computer and use it in GitHub Desktop.
fpumount
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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