iflinkstatus(8)
Returns the status of hardware network links
iflinkstatus
Returns the status of hardware network links in a binary format. 1 for eth0, 2 for eth1. yes.
Unchanged in 5 releases since Debian 4.0 (Etch).