:: Re: [DNG] netman GIT project
Inizio della pagina
Delete this message
Reply to this message
Autore: Edward Bartolo
Data:  
To: Steve Litt
CC: dng
Oggetto: Re: [DNG] netman GIT project
It worked.

Now, I must find a way to determine whether we can communicate with a
router. Found that also.

"ip a | grep wlan0"
With wifi switched on and connection active: state UP

With wifi turned off and connection still active: state DOWN

That is what I need.


Edward

On 27/08/2015, Steve Litt <slitt@???> wrote:
> On Thu, 27 Aug 2015 15:40:49 +0100
> Edward Bartolo <edbarx@???> wrote:
>
>> I added another function to core_functions.c. It attempts to connect
>> to eth0 but for some weird reason, probably a bug not from our part,
>> it is failing.
>>
>> The function is: int connectWired(const char ethx)
>>
>> And the error is: (passed command to execl is "ifup eth0")
>> "This command should be called as ifup, ifdown, or ifquery"
>>
>> Any pointers as to what is the cause are appreciated.
>
> You might get lucky by sending execl the full path to ifup, perhaps
> it's /sbin/ifup and execl didn't send the environment.
>
>
>
> SteveT
>
> Steve Litt
> August 2015 featured book: Troubleshooting: Just the Facts
> http://www.troubleshooters.com/tjust
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>