From owner-freebsd-hackers Sat Jan 4 3:45:33 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA99E37B401 for ; Sat, 4 Jan 2003 03:45:31 -0800 (PST) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id B50FC43ED4 for ; Sat, 4 Jan 2003 03:45:30 -0800 (PST) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.5/8.12.5) with ESMTP id h04BjRTJ038797; Sat, 4 Jan 2003 14:45:28 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Sat, 4 Jan 2003 14:45:27 +0300 (MSK) From: Dmitry Morozovsky To: wgrim@siue.edu Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Reading rc.conf from C programs? In-Reply-To: <1041540674.3e14a642d30b5@webmail1.isg.siue.edu> Message-ID: <20030104144309.J17831@woozle.rinet.ru> References: <4351.1041538966@critter.freebsd.dk> <1041540674.3e14a642d30b5@webmail1.isg.siue.edu> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 2 Jan 2003 wgrim@siue.edu wrote: > I mean, I may certainly be missing something here, but I've never noticed > rc.conf be anything other than a left hand value and a right hand value (often > enclosed in quotes), with both sides being separated by an equal sign. Nope. From our jail machine: ALIASBASE=96 ALIASCNT=16 ALIASNO=0 while [ ${ALIASNO} -lt ${ALIASCNT} ]; do ALIASLAST=`expr ${ALIASBASE} + ${ALIASNO}` eval "ifconfig_rl0_alias${ALIASNO}='195.XX.YY.${ALIASLAST}/32'" ALIASNO=`expr ${ALIASNO} + 1` done Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message