Re: RFC: new network config (was: Re: network configuration)
On Fri, Feb 05, 1999 at 12:16:52PM +0100, Miquel van Smoorenburg wrote:
> INT="`sed -n -e 's/^interface\.\([a-z0-9\-]\+\)\..*$/\1/p' < $CONF | sort -u`"
> echo $INT
> for i in $INT
> do
> ip=`sed -n -e "s/^interface.$i.ip.*=\(.*\)\$/\1/p" < $CONF`
> mask=`sed -n -e "s/^interface.$i.mask.*=\(.*\)\$/\1/p" < $CONF`
> echo "interface $i, ip $ip, mask $mask"
> done
>
> But this is SLOW. It'd be better to do it in perl. Or awk, maybe.
Currently (boot-floppies_2.1.6) the rescue floppy doesn't have sed, awk,
or sed (no space left). Just ash. I will try to put sed back for potato,
but don't hold your breath. Keep that in mind while designing the
init.d/network script.
--
Enrique Zanardi ezanardi@ull.es
Reply to: