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 |