Hi Patrick,
What I meant was that - 
If there are different interfaces like eth0, eth1, wlan0, wlan1 etc.
So how can an external application know via connman, that these interfaces 
exists.

The newly added command may work something like below
1st --
connmanctl>netifaces
//returns
Ethernet - eth0, eth1
Wireless -  wlan0, wlan1

2nd --
connmanctl>netifaces
//returns nothing if no interfaces are present.
connmanctl>


Feeding it to grep or sed does not make sense and that was not what I actually 
meant.
Just a new command which gives actual network interfaces(the ones created by 
linux drivers).

Abhijit
________________________________________
From: connman [[email protected]] on behalf of Patrik Flykt 
[[email protected]]
Sent: Tuesday, June 16, 2015 7:08 PM
To: [email protected]
Subject: Re: Support to get detected interfaces via connmanctl command ??

On Tue, 2015-06-16 at 13:01 +0000, Lamsoge, Abhijit wrote:
> Hi Patrick,
> Is there any command to know what interfaces(eth0, wlan0, etc) are
> present in connmand via connmanctl ?

See the 'Ethernet' property dictionary for (all) connected services with
the 'services XXXX_XXXX' command.

The output of connmanctl will not be stable, so feeding it to grep or
sed can stop working without warning.

Cheers,

        Patrik

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to