From d80e7aa796777718c91689d57c5e1bb5108e7285 Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Tue, 18 Jul 2000 22:07:31 +0000 Subject: [PATCH] Make "ifconfig" with no arguments equivalent to "ifconfig -a". --- sbin/ifconfig/ifconfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 36424644822f..cfc47221e7a4 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -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)