NetBSD/sbin/ifconfig
sommerfeld 8bfcc5ad34 Add a new -s option to make it easier to test the link-level status
(i.e., 10baseT carrier/no carrier) of an interface from scripts

ifconfig -s <interface> will exit with a false status if the interface
reports its unconnected.

-s also works in conjunction with -l and -a, filtering out interfaces
which are reporting down.

Also, add -b (which shows only broadcast interfaces with -l and -a).

I find these options useful in network autoconfig scripts for mobile
systems.
1999-07-03 17:31:15 +00:00
..
ifconfig.8 Add a new -s option to make it easier to test the link-level status 1999-07-03 17:31:15 +00:00
ifconfig.c Add a new -s option to make it easier to test the link-level status 1999-07-03 17:31:15 +00:00
Makefile s/CFLAGS/CPPFLAGS/ for -D and -I. 1999-07-03 06:26:25 +00:00