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

Click here to return to the 'Alternate ways to access the SSID' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Alternate ways to access the SSID
Authored by: galexand on Feb 19, '05 11:14:36AM

The ssid=`...` line from the original script didn't work for me (for some reason it worked at the shell, but from within set-hostname, it didn't *shrug*). So I found the same information burried in configd, which we can get at using scutil:

ssid=`(echo open; echo show State:/Network/Interface/en1/AirPort) | scutil | grep \ SSID | sed -e 's/^.* //'`

colter posted a script that contains nother way to obtain this information using /usr/sbin/system_profiler also.

[ Reply to This | # ]