:: Re: [DNG] an alternative to poetter…
Inizio della pagina
Delete this message
Reply to this message
Autore: aitor_czr
Data:  
To: dng
Oggetto: Re: [DNG] an alternative to poettering's ifplugd
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-dev and ethtool packages, and build the file:
>
> gcc main.c -liw -o main
>
> and run it in the command line:
>
> $ ./main
>
> The output will be:
>
> The wire is PLUGGED/UNPLUGGED
>
> The unplug event is detected inmediatly, but the unplug event takes a
> few seconds. It's working for me.
>
> I need testers.
>
> Thanks in advance :)
>
> Aitor.
>

The ethtool dependency is superfluous, i removed the header and updated
the sources in the link:

http://www.gnuinos.org/examples/netproc/

Cheers,

Aitor.