iflink(8)
Returns whether or not the system has a network link
iflink
Checks whether or not the system has a network hardware link. Status is returned via STDOUT and return value, 0 for no, 1 for yes.
Unchanged in 5 releases since Debian 4.0 (Etch).