Make "ifconfig" with no arguments equivalent to "ifconfig -a".
This commit is contained in:
parent
2ba03123c5
commit
d80e7aa796
@ -390,6 +390,10 @@ main(argc, argv)
|
||||
if (uponly && downonly)
|
||||
usage();
|
||||
|
||||
/* no arguments is equivalent to '-a' */
|
||||
if (!namesonly && argc < 1)
|
||||
all = 1;
|
||||
|
||||
/* -a and -l allow an address family arg to limit the output */
|
||||
if (all || namesonly) {
|
||||
if (argc > 1)
|
||||
|
Loading…
Reference in New Issue
Block a user