From owner-freebsd-bugs Mon Oct 23 3:50: 4 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3848B37B4C5 for ; Mon, 23 Oct 2000 03:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA23562; Mon, 23 Oct 2000 03:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from hand.dotat.at (unknown [212.85.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 1A0BD37B479 for ; Mon, 23 Oct 2000 03:41:46 -0700 (PDT) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13nf2z-0000Ch-00 for FreeBSD-gnats-submit@freebsd.org; Mon, 23 Oct 2000 10:41:41 +0000 Message-Id: Date: Mon, 23 Oct 2000 10:41:41 +0000 From: Tony Finch Reply-To: Tony Finch To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/22241: make wicontrol default to wi0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22241 >Category: bin >Synopsis: make wicontrol default to wi0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 23 03:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Tony Finch >Release: FreeBSD 4.1.1-STABLE-20001015 i386 >Organization: dotat >Environment: >Description: `wicontrol` requires a -i argument, although in the vast majority of cases it is -i wi0. I think that should be a default. >How-To-Repeat: >Fix: Index: wicontrol.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/wicontrol/wicontrol.c,v retrieving revision 1.9.2.2 diff -u -r1.9.2.2 wicontrol.c --- wicontrol.c 2000/09/21 00:26:59 1.9.2.2 +++ wicontrol.c 2000/10/23 10:36:26 @@ -795,7 +795,7 @@ } if (iface == NULL) - usage(p); + iface = "wi0"; if (key != NULL) { wi_setkeys(iface, key, modifier); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message