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


Click here to return to the 'Display current network location via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display current network location via the Terminal
Authored by: thogard on Oct 07, '04 08:22:06AM

How about using arp -a to get the mac addresses of your router (via netstat -rn | grep default) and then use that to build a list of what the should be the correct location if you see that mac address in the mac table.

There was another hint that said there was a script that was run anytime the settings changes like you plugged in a network. tap into that, detect the mac addresses and then set the location and all the proxy settings will follow.



[ Reply to This | # ]