Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2001 07:20:02 -0800 (PST)
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/21695: ifconfig_XXX_aliasY in rc.conf; Y must be in sequential order
Message-ID:  <200111171520.fAHFK2W43912@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/21695; it has been noted by GNATS.

From: Ian Dowse <iedowse@maths.tcd.ie>
To: pekkas@netcore.fi
Cc: freebsd-gnats-submit@freebsd.org, ru@freebsd.org
Subject: Re: conf/21695: ifconfig_XXX_aliasY in rc.conf; Y must be in sequential order
Date: Sat, 17 Nov 2001 15:19:09 +0000

 Another approach that could be used here would be to filter the
 output of "set" using while/read/case, e.g something like
 
 set | (while read alias; do
 	alias=${alias%%=*}
 	case "$alias" in
 	ifconfig_${ifn}_alias*)
 		eval ifconfig_args=\$$alias
 		ifconfig ${ifn} ${ifconfig_args} alias
 		eval showstat_$ifn=1
 		;;
 	esac
 done)
 
 
 Ian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111171520.fAHFK2W43912>