A tool for mounting remote shares on OSX. It takes WiFi SSID as an argument, and attempts the connection only if the SSID matches the network the system is currently connected to.
Objective-C Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
compiled Added Compiled File for Download Oct 21, 2013
mounty.xcodeproj First Commit of Mounty Oct 19, 2013
mounty First Commit of Mounty Oct 19, 2013
LICENSE Updated License Aug 5, 2015
README.md License Update Aug 5, 2015

README.md

Mounty

Mounty is a tool for mounting remote shares on OSX. It takes WiFi SSID as an argument, and attempts the connection only if the SSID matches the network the system is currently connected to. It also verifies that the share isn't already mounted. If it is, it returns the location where the share is already mounted, rather then attempting to mount it again.

Mounty is superior to the unix mount command available in OSX because it can store the credentials for the network share (username and password) in the keychain. This makes it ideal for use in bash scripts. For instance, you can make a bash script that calls mounty several times, iterating through all kinds of network shares you connect to on regular basis. Simply add that script to cron, and you'll never have to worry about manually remounting those shares again.

I added the SSID argument so that monty knows to only attempt the connection if the system is connected to the right network, ideal for laptops, if you work in several different locations, and need to access different network shares, based on the location.

Installing

Download the precompiled binary from the "compiled" directory above or compile the source in Xcode and copy the mounty binary to any directory in your path, like /usr/bin/.

Running

Example:

mounty smb://server/share /mount/pint WiFi_SSID

It works with any type of share that OSX can mount, not just samba, as it relies on the internal NetFS library.

License

Released under the MIT License.