[gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread meino . cramer
Hi,

For a device (beaglebone black) I am looking for a solution
of the following problem:

This little computer boots a fully blown Gentoo linux. It is 
used mostly as headless device (capturing data from attached 
sensors).

From time to time I want access it via LAN.

If the device was booted without LAN attached, the configured
ethernet was not found and dhcpd fails.
So Gentoo goes into no LAN-mode (or something like that).



Is there a less waiting for the timeout-prone way to refresh
the status of the LAN beside putting the accoring init-script
into a cron job ???


Is there a way to check, whether a RJ45 was plugged into the 
device and if so to start init-script then?

Thank you very much in advance for any help!
Best regards,
mcc






Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread wraeth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 30/09/14 20:12, meino.cra...@gmx.de wrote:
 Is there a way to check, whether a RJ45 was plugged into the device and if 
 so to start init-script then?

You could use a network management daemon that works on device status such as
net-misc/networkmanager (replacing the dhcpcd service but still making use of
the dhcpcd (or, if preferred, dhclient) utility).

- -- 
wraeth
Key: 0xB2D9F759
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iF4EAREIAAYFAlQqg4cACgkQXcRKerLZ91lR1QD/QRzj0cc8To2BVRQQr6uFny2a
maQkQwy14zwmqV0qFecA/07H01ZAIbOswnX3HMF3SVDcqcxW9K7UxtPKvUSxXDVN
=CMvs
-END PGP SIGNATURE-



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Mick
On Tuesday 30 Sep 2014 11:12:34 meino.cra...@gmx.de wrote:
 Hi,
 
 For a device (beaglebone black) I am looking for a solution
 of the following problem:
 
 This little computer boots a fully blown Gentoo linux. It is
 used mostly as headless device (capturing data from attached
 sensors).
 
 From time to time I want access it via LAN.
 
 If the device was booted without LAN attached, the configured
 ethernet was not found and dhcpd fails.
 So Gentoo goes into no LAN-mode (or something like that).
 
 
 
 Is there a less waiting for the timeout-prone way to refresh
 the status of the LAN beside putting the accoring init-script
 into a cron job ???
 
 
 Is there a way to check, whether a RJ45 was plugged into the
 device and if so to start init-script then?
 
 Thank you very much in advance for any help!
 Best regards,
 mcc

Typically used on laptops:

[I] sys-apps/ifplugd
 Available versions:  
0.28-r9 [doc selinux]
 Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
 Homepage:http://0pointer.de/lennart/projects/ifplugd/
 Description: Brings up/down ethernet ports automatically with 
cable detection


-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread thegeezer
On 30/09/14 11:21, Mick wrote:
 On Tuesday 30 Sep 2014 11:12:34 meino.cra...@gmx.de wrote:
 Thank you very much in advance for any help!
 Best regards,
 mcc
 Typically used on laptops:

 [I] sys-apps/ifplugd
  Available versions:  
 0.28-r9   [doc selinux]
  Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
  Homepage:http://0pointer.de/lennart/projects/ifplugd/
  Description: Brings up/down ethernet ports automatically with 
 cable detection



and another alternative would be sys-apps/netplug



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread meino . cramer
thegeezer thegee...@thegeezer.net [14-09-30 12:32]:
 On 30/09/14 11:21, Mick wrote:
  On Tuesday 30 Sep 2014 11:12:34 meino.cra...@gmx.de wrote:
  Thank you very much in advance for any help!
  Best regards,
  mcc
  Typically used on laptops:
 
  [I] sys-apps/ifplugd
   Available versions:  
  0.28-r9 [doc selinux]
   Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
   Homepage:http://0pointer.de/lennart/projects/ifplugd/
   Description: Brings up/down ethernet ports automatically with 
  cable detection
 
 
 
 and another alternative would be sys-apps/netplug
 


WHOW! That all sounds much more easier than I have dreamt of!
I did not thought, that such software exists already -- and therefore
did not search for it...

Great! Thanks a lot -- helps a lot here!

Best regards,
mcc





Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Neil Bothwick
On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:

   [I] sys-apps/ifplugd
Available versions:  
   0.28-r9   [doc selinux]
Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
Homepage:
   http://0pointer.de/lennart/projects/ifplugd/ Description:
   Brings up/down ethernet ports automatically with cable detection

  and another alternative would be sys-apps/netplug

 WHOW! That all sounds much more easier than I have dreamt of!
 I did not thought, that such software exists already -- and therefore
 did not search for it...

If you use openrc, you only need to install one of these programs, not
configure or set it to run. OpenRC detects that one of these programs is
available and uses it to do exactly what you need.


-- 
Neil Bothwick

We are upping our standards - so up yours.


signature.asc
Description: PGP signature


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread meino . cramer
Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:
 On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:
 
[I] sys-apps/ifplugd
 Available versions:  
0.28-r9 [doc selinux]
 Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
 Homepage:
http://0pointer.de/lennart/projects/ifplugd/ Description:
Brings up/down ethernet ports automatically with cable detection
 
   and another alternative would be sys-apps/netplug
 
  WHOW! That all sounds much more easier than I have dreamt of!
  I did not thought, that such software exists already -- and therefore
  did not search for it...
 
 If you use openrc, you only need to install one of these programs, not
 configure or set it to run. OpenRC detects that one of these programs is
 available and uses it to do exactly what you need.
 
 
 -- 
 Neil Bothwick
 
 We are upping our standards - so up yours.

Hi Neil,

...and there are people out there, which flee with lightspeed
in fear of complexity in that moment I will spell c-o-m-m-a-n-d-l-i-n-e
grin

Thanks a lot! Currently emerge is running... :)

Best regards,
mcc






Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread meino . cramer
Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:
 On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:
 
[I] sys-apps/ifplugd
 Available versions:  
0.28-r9 [doc selinux]
 Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
 Homepage:
http://0pointer.de/lennart/projects/ifplugd/ Description:
Brings up/down ethernet ports automatically with cable detection
 
   and another alternative would be sys-apps/netplug
 
  WHOW! That all sounds much more easier than I have dreamt of!
  I did not thought, that such software exists already -- and therefore
  did not search for it...
 
 If you use openrc, you only need to install one of these programs, not
 configure or set it to run. OpenRC detects that one of these programs is
 available and uses it to do exactly what you need.
 
 
 -- 
 Neil Bothwick
 
 We are upping our standards - so up yours.

...ok, it works!
...nearly... ;)



Unfortunately, ntp-client is configured via rc-update (added to
default) but after plugging in LAN the interface eth0 comes 
up and I have access via ssh...but the date is set to the beginnig
of the UNIX epoch.
I have to call ntp-client by hand.





Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Neil Bothwick
On Tue, 30 Sep 2014 13:49:44 +0200, meino.cra...@gmx.de wrote:

  If you use openrc, you only need to install one of these programs, not
  configure or set it to run. OpenRC detects that one of these programs
  is available and uses it to do exactly what you need.

 Unfortunately, ntp-client is configured via rc-update (added to
 default) but after plugging in LAN the interface eth0 comes 
 up and I have access via ssh...but the date is set to the beginnig
 of the UNIX epoch.
 I have to call ntp-client by hand.

You could call it from postup() in /etc/conf.d/net. See net.example for
details.


-- 
Neil Bothwick

To be intoxicated is to feel sophisticated but not be able to say it.


signature.asc
Description: PGP signature


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Mick
On Tuesday 30 Sep 2014 12:49:44 meino.cra...@gmx.de wrote:
 Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:
  On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:
 [I] sys-apps/ifplugd
 
  Available versions:
 0.28-r9   [doc selinux]
  
  Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
 
  Homepage:
 http://0pointer.de/lennart/projects/ifplugd/ Description:
 Brings up/down ethernet ports automatically with cable detection

and another alternative would be sys-apps/netplug
   
   WHOW! That all sounds much more easier than I have dreamt of!
   I did not thought, that such software exists already -- and therefore
   did not search for it...
  
  If you use openrc, you only need to install one of these programs, not
  configure or set it to run. OpenRC detects that one of these programs is
  available and uses it to do exactly what you need.
 
 ...ok, it works!
 ...nearly... ;)
 
 
 
 Unfortunately, ntp-client is configured via rc-update (added to
 default) but after plugging in LAN the interface eth0 comes
 up and I have access via ssh...but the date is set to the beginnig
 of the UNIX epoch.
 I have to call ntp-client by hand.

Or instead use chrony?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Mick
On Tuesday 30 Sep 2014 13:09:55 Neil Bothwick wrote:
 On Tue, 30 Sep 2014 13:49:44 +0200, meino.cra...@gmx.de wrote:
   If you use openrc, you only need to install one of these programs, not
   configure or set it to run. OpenRC detects that one of these programs
   is available and uses it to do exactly what you need.
  
  Unfortunately, ntp-client is configured via rc-update (added to
  default) but after plugging in LAN the interface eth0 comes
  up and I have access via ssh...but the date is set to the beginnig
  of the UNIX epoch.
  I have to call ntp-client by hand.
 
 You could call it from postup() in /etc/conf.d/net. See net.example for
 details.

Do you know of any difference between netplug and ifplug?  Pros  Cons kind of 
thing, or are they identical in their operation?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Neil Bothwick
On Tue, 30 Sep 2014 13:16:48 +0100, Mick wrote:

 Do you know of any difference between netplug and ifplug?  Pros  Cons
 kind of thing, or are they identical in their operation?

I installed ifplugd and it just worked, so I've never tried netplug. But
openrc does the work now, it just uses those programs to tell when the
link is available.


-- 
Neil Bothwick

When companies ship Styrofoam, what do they pack it in?


signature.asc
Description: PGP signature


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Kerin Millar

On 30/09/2014 12:49, meino.cra...@gmx.de wrote:

Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:

On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:


[I] sys-apps/ifplugd
  Available versions:
 0.28-r9[doc selinux]
  Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
  Homepage:
http://0pointer.de/lennart/projects/ifplugd/ Description:
Brings up/down ethernet ports automatically with cable detection



and another alternative would be sys-apps/netplug



WHOW! That all sounds much more easier than I have dreamt of!
I did not thought, that such software exists already -- and therefore
did not search for it...


If you use openrc, you only need to install one of these programs, not
configure or set it to run. OpenRC detects that one of these programs is
available and uses it to do exactly what you need.


--
Neil Bothwick

We are upping our standards - so up yours.


...ok, it works!
...nearly... ;)



Unfortunately, ntp-client is configured via rc-update (added to
default) but after plugging in LAN the interface eth0 comes
up and I have access via ssh...but the date is set to the beginnig
of the UNIX epoch.
I have to call ntp-client by hand.


If you know that net.eth0 is specifically required to be up for 
ntp-client to work, you should render OpenRC aware of the fact:


echo 'rc_need=net.eth0'  /etc/conf.d/ntp-client

--Kerin



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread meino . cramer
Kerin Millar kerfra...@fastmail.co.uk [14-09-30 15:08]:
 On 30/09/2014 12:49, meino.cra...@gmx.de wrote:
 Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:
 On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:
 
 [I] sys-apps/ifplugd
   Available versions:
  0.28-r9 [doc selinux]
   Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
   Homepage:
 http://0pointer.de/lennart/projects/ifplugd/ Description:
 Brings up/down ethernet ports automatically with cable detection
 
 and another alternative would be sys-apps/netplug
 
 WHOW! That all sounds much more easier than I have dreamt of!
 I did not thought, that such software exists already -- and 
 therefore
 did not search for it...
 
 If you use openrc, you only need to install one of these programs, 
 not
 configure or set it to run. OpenRC detects that one of these programs 
 is
 available and uses it to do exactly what you need.
 
 
 --
 Neil Bothwick
 
 We are upping our standards - so up yours.
 
 ...ok, it works!
 ...nearly... ;)
 
 
 
 Unfortunately, ntp-client is configured via rc-update (added to
 default) but after plugging in LAN the interface eth0 comes
 up and I have access via ssh...but the date is set to the beginnig
 of the UNIX epoch.
 I have to call ntp-client by hand.
 
 If you know that net.eth0 is specifically required to be up for 
 ntp-client to work, you should render OpenRC aware of the fact:
 
 echo 'rc_need=net.eth0'  /etc/conf.d/ntp-client
 
 --Kerin
 

Hi Kerin,

I tried a similiar thing:

#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.13 
2013/12/24 11:01:52 vapier Exp $

depend() {
before cron portmap
after eth0
use dns logger
}


for after XYZ
I set 
net
net.eth0
eth0
and none worked for me...

Best regards,
mcc








Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Kerin Millar

On 30/09/2014 14:46, Kerin Millar wrote:

On 30/09/2014 14:42, meino.cra...@gmx.de wrote:

Kerin Millar kerfra...@fastmail.co.uk [14-09-30 15:08]:

On 30/09/2014 12:49, meino.cra...@gmx.de wrote:

Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:

On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:


[I] sys-apps/ifplugd
  Available versions:
 0.28-r9[doc selinux]
  Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
  Homepage:
http://0pointer.de/lennart/projects/ifplugd/ Description:
Brings up/down ethernet ports automatically with cable detection



and another alternative would be sys-apps/netplug



WHOW! That all sounds much more easier than I have dreamt of!
I did not thought, that such software exists already -- and
therefore
did not search for it...


If you use openrc, you only need to install one of these programs,
not
configure or set it to run. OpenRC detects that one of these programs
is
available and uses it to do exactly what you need.


--
Neil Bothwick

We are upping our standards - so up yours.


...ok, it works!
...nearly... ;)



Unfortunately, ntp-client is configured via rc-update (added to
default) but after plugging in LAN the interface eth0 comes
up and I have access via ssh...but the date is set to the beginnig
of the UNIX epoch.
I have to call ntp-client by hand.


If you know that net.eth0 is specifically required to be up for
ntp-client to work, you should render OpenRC aware of the fact:

echo 'rc_need=net.eth0'  /etc/conf.d/ntp-client

--Kerin



Hi Kerin,

I tried a similiar thing:

#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v
1.13 2013/12/24 11:01:52 vapier Exp $

depend() {
 before cron portmap
 after eth0
 use dns logger
}


for after XYZ
I set
 net
 net.eth0
 eth0
and none worked for me...


Using 'after' won't work unless both net.eth0 and ntp-client are in the
default runlevel. Obviously, that condition is not satisfied if you are
using ifplugd. Please try the solution mentioned in my previous post. It
should work.


On second thoughts, it might have the unintended affect of starting 
net.eth0 before iplugd does. If you try it, let me know how it goes.


--Kerin



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Neil Bothwick
On Tue, 30 Sep 2014 14:46:46 +0100, Kerin Millar wrote:

  depend() {
   before cron portmap
   after eth0
   use dns logger
  }
 
 
  for after XYZ
  I set
   net
   net.eth0
   eth0
  and none worked for me...  
 
 Using 'after' won't work unless both net.eth0 and ntp-client are in the 
 default runlevel. Obviously, that condition is not satisfied if you are 
 using ifplugd. Please try the solution mentioned in my previous post.
 It should work.

ifplugd shouldn't be in any runlevel, it is just there for openrc to use.

I suspect that the problem is that eth0 is up but inactive, so services
depending on it start but are unable to contact the network.


-- 
Neil Bothwick

All generalizations are false.


signature.asc
Description: PGP signature


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Kerin Millar

On 30/09/2014 14:58, Neil Bothwick wrote:

On Tue, 30 Sep 2014 14:46:46 +0100, Kerin Millar wrote:


depend() {
  before cron portmap
  after eth0
  use dns logger
}


for after XYZ
I set
  net
  net.eth0
  eth0
and none worked for me...


Using 'after' won't work unless both net.eth0 and ntp-client are in the
default runlevel. Obviously, that condition is not satisfied if you are
using ifplugd. Please try the solution mentioned in my previous post.
It should work.


ifplugd shouldn't be in any runlevel, it is just there for openrc to use.


I did not claim or suggest otherwise.

--Kerin



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Kerin Millar

On 30/09/2014 14:42, meino.cra...@gmx.de wrote:

Kerin Millar kerfra...@fastmail.co.uk [14-09-30 15:08]:

On 30/09/2014 12:49, meino.cra...@gmx.de wrote:

Neil Bothwick n...@digimed.co.uk [14-09-30 12:44]:

On Tue, 30 Sep 2014 12:39:06 +0200, meino.cra...@gmx.de wrote:


[I] sys-apps/ifplugd
  Available versions:
 0.28-r9[doc selinux]
  Installed versions:  0.28-r9(11:14:57 12/18/10)(-doc)
  Homepage:
http://0pointer.de/lennart/projects/ifplugd/ Description:
Brings up/down ethernet ports automatically with cable detection



and another alternative would be sys-apps/netplug



WHOW! That all sounds much more easier than I have dreamt of!
I did not thought, that such software exists already -- and
therefore
did not search for it...


If you use openrc, you only need to install one of these programs,
not
configure or set it to run. OpenRC detects that one of these programs
is
available and uses it to do exactly what you need.


--
Neil Bothwick

We are upping our standards - so up yours.


...ok, it works!
...nearly... ;)



Unfortunately, ntp-client is configured via rc-update (added to
default) but after plugging in LAN the interface eth0 comes
up and I have access via ssh...but the date is set to the beginnig
of the UNIX epoch.
I have to call ntp-client by hand.


If you know that net.eth0 is specifically required to be up for
ntp-client to work, you should render OpenRC aware of the fact:

echo 'rc_need=net.eth0'  /etc/conf.d/ntp-client

--Kerin



Hi Kerin,

I tried a similiar thing:

#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntp-client.rc,v 1.13 
2013/12/24 11:01:52 vapier Exp $

depend() {
 before cron portmap
 after eth0
 use dns logger
}


for after XYZ
I set
 net
 net.eth0
 eth0
and none worked for me...


Using 'after' won't work unless both net.eth0 and ntp-client are in the 
default runlevel. Obviously, that condition is not satisfied if you are 
using ifplugd. Please try the solution mentioned in my previous post. It 
should work.


--Kerin



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Neil Bothwick
On Tue, 30 Sep 2014 15:00:39 +0100, Kerin Millar wrote:

  Using 'after' won't work unless both net.eth0 and ntp-client are in
  the default runlevel. Obviously, that condition is not satisfied if
  you are using ifplugd. Please try the solution mentioned in my
  previous post. It should work.  
 
  ifplugd shouldn't be in any runlevel, it is just there for openrc to
  use.  
 
 I did not claim or suggest otherwise.

Your suggestion that net.eth0 was not in the default runlevel if using
ifplugd suggested that ifplugd was, otherwise the interface would never
be started.


-- 
Neil Bothwick

Growing old is mandatory; growing up is optional!!


signature.asc
Description: PGP signature


Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread Kerin Millar

On 30/09/2014 15:03, Neil Bothwick wrote:

On Tue, 30 Sep 2014 15:00:39 +0100, Kerin Millar wrote:


Using 'after' won't work unless both net.eth0 and ntp-client are in
the default runlevel. Obviously, that condition is not satisfied if
you are using ifplugd. Please try the solution mentioned in my
previous post. It should work.


ifplugd shouldn't be in any runlevel, it is just there for openrc to
use.


I did not claim or suggest otherwise.


Your suggestion that net.eth0 was not in the default runlevel if using
ifplugd suggested that ifplugd was, otherwise the interface would never
be started.


No it it didn't. I pointed out that his attempt to use 'after' could 
never have worked. I did so by explaining the exact conditions under 
which 'after' would have made a difference.


Aside from that, I am well aware that he is using ifplugd and how it works.

--Kerin



Re: [gentoo-user] another headless device-question: In search of the LAN

2014-09-30 Thread meino . cramer
Kerin Millar kerfra...@fastmail.co.uk [14-09-30 16:04]:
 On 30/09/2014 14:58, Neil Bothwick wrote:
 On Tue, 30 Sep 2014 14:46:46 +0100, Kerin Millar wrote:
 
 depend() {
   before cron portmap
   after eth0
   use dns logger
 }
 
 
 for after XYZ
 I set
   net
   net.eth0
   eth0
 and none worked for me...
 
 Using 'after' won't work unless both net.eth0 and ntp-client are in 
 the
 default runlevel. Obviously, that condition is not satisfied if you 
 are
 using ifplugd. Please try the solution mentioned in my previous post.
 It should work.
 
 ifplugd shouldn't be in any runlevel, it is just there for openrc to 
 use.
 
 I did not claim or suggest otherwise.
 
 --Kerin
 

I already have a solution in a file which is a user alterable
file:
I just put a call to ntp-client in the postup(){} function
of /etc/conf.d/net. Called once and no polling and straight forward.
And if an update to that file will happen, cfg-update will keep track
of it.
I am happy with that.

Best regards,
mcc