Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread aitor_czr
Hi Didier, On 19/3/19 12:39, Didier Kryn wrote: Le 19/03/2019 à 09:56, aitor_czr a écrit : Hi Nick, On 19/3/19 9:21, Dr. Nikolaus Klepp wrote: ... for i in /sys/class/net/eth*; do ... Thanks for your script! Interesting to know... With a short look, i seems to read the value content i

Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread Didier Kryn
Le 19/03/2019 à 09:56, aitor_czr a écrit : Hi Nick, On 19/3/19 9:21, Dr. Nikolaus Klepp wrote: ... for i in /sys/class/net/eth*; do ... Thanks for your script! Interesting to know... With a short look, i seems to read the value content in the /sys/class/eth0/carrier file, set to "0" or

Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread aitor_czr
Hi, On 19/3/19 9:21, Dr. Nikolaus Klepp wrote: You might call me ignorant, but with bash this can be done a bit simpler (this is from my solution to the detect-if-kable-present-while-booting-problem):-) The best solution might be to run the connection attempt on a secondary plane without int

Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread Dr. Nikolaus Klepp
Hi Aitor! Anno domini 2019 Tue, 19 Mar 09:56:07 +0100 aitor_czr scripsit: > Hi Nick, > > On 19/3/19 9:21, Dr. Nikolaus Klepp wrote: > > You might call me ignorant, but with bash this can be done a bit simpler > > (this is from my solution to the > > detect-if-kable-present-while-booting-proble

Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread aitor_czr
On 19/3/19 9:56, aitor_czr wrote: Hi Nick, On 19/3/19 9:21, Dr. Nikolaus Klepp wrote: You might call me ignorant, but with bash this can be done a bit simpler (this is from my solution to the detect-if-kable-present-while-booting-problem):-) #!/bin/bash while sleep 1; do for i in /sys

Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread aitor_czr
Hi Nick, On 19/3/19 9:21, Dr. Nikolaus Klepp wrote: You might call me ignorant, but with bash this can be done a bit simpler (this is from my solution to the detect-if-kable-present-while-booting-problem):-) #!/bin/bash while sleep 1; do for i in /sys/class/net/eth*; do VAR=$(ba

Re: [DNG] an alternative to poettering's ifplugd

2019-03-19 Thread Dr. Nikolaus Klepp
Hi! Anno domini 2019 Mon, 18 Mar 18:37:37 +0100 aitor_czr scripsit: > Hi all, > > On 17/3/19 13:45, aitor_czr wrote: > > > > I'm also working on an alternative to poettering's ifplugd for the > > automatically wired connect option of simple-netaid. > > > > Aitor. > > > Here you are the code: >

Re: [DNG] an alternative to poettering's ifplugd

2019-03-18 Thread aitor_czr
Hi, On 18/3/19 18:37, aitor_czr wrote: Hi all, On 17/3/19 13:45, aitor_czr wrote: I'm also working on an alternative to poettering's ifplugd for the automatically wired connect option of simple-netaid. Aitor. Here you are the code: gnuinos.org/examples/netproc/main.c Install the libiw

Re: [DNG] an alternative to poettering's ifplugd

2019-03-18 Thread aitor_czr
Hi all, On 17/3/19 13:45, aitor_czr wrote: I'm also working on an alternative to poettering's ifplugd for the automatically wired connect option of simple-netaid. Aitor. Here you are the code: gnuinos.org/examples/netproc/main.c Install the libiw-dev and ethtool packages, and build the f