Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Without the freeware' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Without the freeware
Authored by: nschum on Dec 27, '06 02:32:53PM
You don't need any software, you can also the following to
/System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/Kicker.xml

<dict>
<key>execCommand</key>
<string>/path/to/share_connect_sh</string>
<key>execUID</key>
<integer>0</integer>
<key>keys</key>
<array>
<string>Setup:/</string>
<string>State:/Network/Global/IPv4</string>
</array>
<key>name</key>
<string>ConnectSamba</string>
</dict>

And I use the following to determine the network, which more precise, but only works on wireless
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | fgrep -i " ssid" | awk '{print $2}'

More on this somewhere in the comments of http://www.macosxhints.com/article.php?story=20051124110051666


Now I'd really like to mount the share from a shell script directly. mount_smbfs seems to work, but it doesn't popup the volume in Finder ...

[ Reply to This | # ]