From owner-freebsd-security Sat Oct 14 4:21: 0 2000 Delivered-To: freebsd-security@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 1DEF937B66E for ; Sat, 14 Oct 2000 04:20:47 -0700 (PDT) Received: (qmail 6368 invoked by uid 0); 14 Oct 2000 11:20:39 -0000 Received: from p3ee21638.dip.t-dialin.net (HELO speedy.gsinet) (62.226.22.56) by mail.gmx.net with SMTP; 14 Oct 2000 11:20:39 -0000 Received: (from sittig@localhost) by speedy.gsinet (8.8.8/8.8.8) id LAA29073 for freebsd-security@FreeBSD.ORG; Sat, 14 Oct 2000 11:38:54 +0200 Date: Sat, 14 Oct 2000 11:38:54 +0200 From: Gerhard Sittig To: freebsd-security@FreeBSD.ORG Subject: Re: Dynamic rc.firewall Message-ID: <20001014113854.I25237@speedy.gsinet> Mail-Followup-To: freebsd-security@FreeBSD.ORG References: <20001014010830.C37870@jade.chc-chimes.com> <200010140557.WAA10422@gndrsh.dnsmgr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200010140557.WAA10422@gndrsh.dnsmgr.net>; from freebsd@gndrsh.dnsmgr.net on Fri, Oct 13, 2000 at 10:57:00PM -0700 Organization: System Defenestrators Inc. Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Oct 13, 2000 at 22:57 -0700, Rodney W. Grimes wrote: > > Note my stress on doing it the good old way, with the power of the > Borne shell: > ip=`ifconfig de1 | while read junk tip junk2 tnm junk3 tbc > do > if [ "${junk}" = "inet" ]; then > echo ${tip} > break > fi > done` You're leaving out all the aliases here? I guess the "break" has to leave and the caller has to cope with $ip consisting of multiple values. Unless we're talking about simple configurations without aliases. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message