mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Make "ifconfig" with no arguments equivalent to "ifconfig -a".
This commit is contained in:
parent
2ba03123c5
commit
d80e7aa796
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63473
@ -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