Re: Ordering for network-sensitive rc scripts

2014-05-12 Thread Mark Felder
On Apr 17, 2014, at 3:21, David Chisnall wrote: > Hi all, > > For a little while, I've had an issue with the machine that sits on the edge > of my network deciding to start avahi as soon as a network is available, > meaning that it then runs mDNS advertisements on the external interface and

Re: Ordering for network-sensitive rc scripts

2014-05-12 Thread Fabian Keil
David Chisnall wrote: > On 11 May 2014, at 20:23, Adrian Chadd wrote: > > > On 11 May 2014 12:01, David Chisnall wrote: > >> On 17 Apr 2014, at 09:30, Adrian Chadd wrote: > >> > >>> Can't we add a devd hook to do that? > >> > >> I tried doing this, but it turns out that wlan devices don't a

Re: Ordering for network-sensitive rc scripts

2014-05-11 Thread David Chisnall
On 11 May 2014, at 20:23, Adrian Chadd wrote: > On 11 May 2014 12:01, David Chisnall wrote: >> On 17 Apr 2014, at 09:30, Adrian Chadd wrote: >> >>> Can't we add a devd hook to do that? >> >> I tried doing this, but it turns out that wlan devices don't appear to send >> devd LINK_UP / LINK_DO

Re: Ordering for network-sensitive rc scripts

2014-05-11 Thread Adrian Chadd
On 11 May 2014 12:01, David Chisnall wrote: > On 17 Apr 2014, at 09:30, Adrian Chadd wrote: > >> Can't we add a devd hook to do that? > > I tried doing this, but it turns out that wlan devices don't appear to send > devd LINK_UP / LINK_DOWN events. It would be nice to have a clean solution > t

Re: Ordering for network-sensitive rc scripts

2014-05-11 Thread David Chisnall
On 17 Apr 2014, at 09:30, Adrian Chadd wrote: > Can't we add a devd hook to do that? I tried doing this, but it turns out that wlan devices don't appear to send devd LINK_UP / LINK_DOWN events. It would be nice to have a clean solution to this. By default, using the stock rc scripts, my rout

Re: Ordering for network-sensitive rc scripts

2014-04-19 Thread Warner Losh
On Apr 17, 2014, at 2:21 AM, David Chisnall wrote: > For a little while, I've had an issue with the machine that sits on the edge > of my network deciding to start avahi as soon as a network is available, > meaning that it then runs mDNS advertisements on the external interface and > not the w

Re: Ordering for network-sensitive rc scripts

2014-04-17 Thread Adrian Chadd
Can't we add a devd hook to do that? -a On 17 April 2014 01:21, David Chisnall wrote: > Hi all, > > For a little while, I've had an issue with the machine that sits on the edge > of my network deciding to start avahi as soon as a network is available, > meaning that it then runs mDNS adverti

Ordering for network-sensitive rc scripts

2014-04-17 Thread David Chisnall
Hi all, For a little while, I've had an issue with the machine that sits on the edge of my network deciding to start avahi as soon as a network is available, meaning that it then runs mDNS advertisements on the external interface and not the wireless one, requiring a manual restart once the mac