From owner-freebsd-bugs Mon Jan 28 17:50: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 89C2937B419 for ; Mon, 28 Jan 2002 17:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0T1o2301441; Mon, 28 Jan 2002 17:50:02 -0800 (PST) (envelope-from gnats) Date: Mon, 28 Jan 2002 17:50:02 -0800 (PST) Message-Id: <200201290150.g0T1o2301441@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ian Dowse Subject: Re: conf/34392: rc.network patch to allow ifconfig aliases to change without renumbering them all Reply-To: Ian Dowse Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/34392; it has been noted by GNATS. From: Ian Dowse To: The Lumpy One Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: conf/34392: rc.network patch to allow ifconfig aliases to change without renumbering them all Date: Tue, 29 Jan 2002 01:40:59 +0000 In message <200201282353.g0SNrKC07661@the.whole.net>, The Lumpy One writes: > > The manpage for rc.conf describes this functionality and the > script chunk replaced by this patch will clearly function this > way. >> for alias in `set|awk -F= '(/^ifconfig_'${ifn}'_alias/){print $ This can't be used, becaues awk is in /usr/bin, and /usr may not be available at this time (e.g. on diskless systems with an NFS /usr). But see conf/21695: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21695 It describes exactly the same problem, and I proposed a version of your idea that avoids the use of awk by using sh builtins only. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message