[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Handle for things to do when network becomes available

Koen Vermeer wrote, On 12.12.2005 10:28:
> On Sun, 2005-12-11 at 16:30 +0100, johnohagan@iprimus.com.au wrote:
>>I am currently trying to do something similar with scripts using ethtool
>>and iwlist to determine which interface is being used and how, then calling
>>ifup with the option of using a different interfaces file (I think it's -F
>>Is this the kind of thing you are after?
> If I understand you correctly: No, not really.
> What I'm looking for is a place to put a script that is called whenever
> any working internet connection becomes available, whether it is by LAN,
> WAN, dial-up, or anything else. I can do this on a per-interface basis
> by putting 'up /path/script' lines in /etc/network/interfaces, but I am
> looking for a place that is interface-independent. In my script, I do
> not need to know the name of the interface that provides the internet
> connection, but of course it wouldn't hurt to have this information
> either.
	/etc/network/if-(pre-up|up|down|post-down).d/ ?

						Milan Sova

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply to: