![]() ![]() If it is successful, your share should be available at the mount location. Now that we have our edited mount command, try running it in Terminal. sbin/mount -o nodev,nosuid -t /Where/You/Want/it_to_mount/'Įxample: /sbin/mount -o nodev,nosuid -t smbfs '//Kyle: /media/Music' '/Users/kyle/Music/' Next we need to edit line 11 to represent your specific needs. sbin/mount -o nodev,nosuid -t smbfs '//Kyle: /media/Music' '/Users/kyle/Music/' #echo SSID is Null, we're not connected with the Airport to any Network. Open your favorite text editor and start a new file, I called mine MountShares.sh if then That our SSID must be equal to a pre-defined SSID, in my case "2600leagues" (line 9).The SSID of our Airport card network is not null (line 5-8).The share is not already mounted (line 1-4).Remember the output of this: airport -I | grep '.* SSID:' | sed 's/^.* SSID: //' The Script: Open Terminal and run: sudo ln -s /System/Library/PrivateFrameworks/amework/Versions/Current/Resources/airport /usr/sbin/airport If you're going to use SSID as a condition for mounting as I have you may find it benificial to alias the Airport utility that ships with OS X to your /usr/bin/. You can of course use anything you'd like for conditional execution. I'm using my laptop's wireless card to determine if I am connected to my home SSID. Made with help from Dave Nicoll's about sharing windows/x iTunes libraries. This is for Samba shares, but you can modify it to do other types. Create a launchd agent (a bash script in this case) to mount us whatever shares we like every couple of minutes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |