Re: Detect network interface changes
Re: Detect network interface changes
- Subject: Re: Detect network interface changes
- From: Ian Mark Salvame <email@hidden>
- Date: Sun, 19 Jul 2009 08:06:53 -0700 (PDT)
> Hello,
>
>> Any suggestions how to do this?
>> It seems that there's no way of doing this through launchd.
>
>There is, you have to watch specifically the file
>/Library/Preferences/SystemConfiguration/preferences.plist via LaunchD
>for changes then interpret what they are according to your criteria. I
>wrote a simple scripted system that detected network location changes
>this way by comparing the current location to the existing one to
>detect a user initiated change of network location. It's not perfect
>but sufficed for what I was trying to do. I imagine with more
>time/effort using the SystemConfiguration frameworks would do the job
>with the agents to tell you what's going on.
>
>Philip
Thanks for the info. I have tried this before but I am not sure if I'm doing the right thing or not.
But is it a guarantee that the preferences.plist
always gets updated whenever there are changes to the network interfaces.
Ian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden