Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created May 21, 2012 10:55
Show Gist options
  • Select an option

  • Save johnhamelink/2761811 to your computer and use it in GitHub Desktop.

Select an option

Save johnhamelink/2761811 to your computer and use it in GitHub Desktop.
#!/bin/bash
SMBUSERNAME="macuser"
SMBPASSWORD="X*aHm7qNUg1)"
SMBMOUNT="/Volumes/Test/"
SMBSHARE="OfficeDoc$"
SMBHOST="192.168.140.20"
rm -rf $SMBMOUNT
mkdir $SMBMOUNT
/sbin/mount -o nodev,nosuid -t smbfs '//${SMBUSERNAME}:${SMBPASSWORD}@${SMBHOST}/${SMBSHARE}' '${SMBHOST}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment