On Sunday 20 July 2003 10:36, Doron Ofek wrote: > ביום ראשון 20 יולי 2003, 10:17, Mix Sella כתב: > > On Saturday 19 July 2003 00:18, Itay 'z9u2K' Duvdevani wrote: > > > On Saturday 19 July 2003 00:14, you wrote: > > > > On Fri, Jul 18, 2003 at 11:13:12PM +0300, Itay 'z9u2K' Duvdevani wrote: > > > > > Hi, > > > > > I am looking for a way to do these two: > > > > > 1. Finding out how many eths the system have (eth0, eth1 ... ethn) > > > > > > > > [ ... ] > > > > > > > > > I need this for the internet tool (http://iwiz.linux-kinneret.org), > > > > > I want to be able to present to the user this information so he > > > > > would know which interface his modem is connected to more easily, > > > > > in case he have more then one ethernet card. > > > > > > > > You seem to be primarily interested in interfaces that are up. Why > > > > don't you check the output of /sbin/ifconfig? > > > > > > I am interested in all interfaces, the tool's job is to bring up the > > > interface... > > > > You want ``/usr/sbin/ip link show'', or ``ip l'' > > mii-tool
No. mii-tool will screw up and get very confused about interfaces in the down state. And, not all network cards have mii, in which case it will screw up and get very confused too. > > Doron > > > ================================To unsubscribe, send mail to > [EMAIL PROTECTED] with the word "unsubscribe" in the message > body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] -- Mix Sella (well, not really but hey) ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]