---Can I know if the ethenet cable is inserted or not

Sep 20, 2010 3 Replies

Dear All,



My question is decribed as in the Subject of this mail. The system I am using is mips linux.



I know the function is media sense function as in window XP, but I don't know the implementation of it under Linux.



Regard! Bill Z


Have a look at the source code of ifplugd.

Tauno Voipio tauno voipio (at) iki fi

I agree with ifplugd.

Also, try looking at /sys/class/net/ethX.

if up + cable if up + NO cable if down + cable carrier 1 carrier 0 cat: carrier: Invalid argument dormant 0 dormant 0 cat: dormant: Invalid argument operstate up operstate down operstate down

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required