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


Click here to return to the 'Automatically mount shares based on location' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically mount shares based on location
Authored by: jwibi on Feb 08, '07 05:27:26AM
it works as "advertised" if you iron out the following kinks in the bash script:

1. make sure there are no line feeds (as pointed out by brynthomas above) (there are two in the text - both with the long lines)

2. line 6:

status_ethernet=$(ifconfig en0 |grep status| awk '{print $4}')
should have
print $6
instead of
print $4
in it. (otherwise it did not work for me)

that's it.
great hint!
thx j

[ Reply to This | # ]