:: Re: [DNG] Edward's Roaming handler:…
Página Inicial
Delete this message
Reply to this message
Autor: Steve Litt
Data:  
Para: dng
Assunto: Re: [DNG] Edward's Roaming handler: was Systemd Shims
On Wed, 19 Aug 2015 10:41:30 -0400
Steve Litt <slitt@???> wrote:

> On Wed, 19 Aug 2015 14:29:02 +0100
> Edward Bartolo <edbarx@???> wrote:
>
> > This is the completed C backend with all functions tested to work.
> > Any suggestions as to modifications are welcome.
> >
> > The C code:


Hi Edward,

In the long run, you need to make the wifi device a variable instead of
hard-coding wlan0. I have no idea which method of deducing the wifi
device would require the least dependencies. I have a feeling it would
be to spawn /sbin/iwconfig, which you already have due to using iwlist.
Armed with the output of /sbin/iwconfig, finding the wifi device is a
very simple parsing task, *unless* there are multiple wifi-enabled
devices.

LOL, I have to find a USB wifi dongle to continue testing your program.
Without any wifi device, when I did ./a.out opScan, I got a segfault.

This thing is great. As far as I can tell, it's distro independent.
If you have Linux, it works. I'm going to use it on **all** my laptops,
and kick NetworkManager, Wicd and my homegrown wpa_supplicant helpers
to the curb.

I wish all Linux software worked like this.

Thanks,

SteveT

Steve Litt
August 2015 featured book: Troubleshooting: Just the Facts
http://www.troubleshooters.com/tjust