Gentoo Archives: gentoo-embedded

From: david@×××××××××.com
To: Martin Schlemmer <azarah@g.o>
Cc: seemat@g.o, gentoo-embedded@g.o
Subject: Re: [gentoo-embedded] base-layout lite
Date: Thu, 11 Dec 2003 15:42:18
Message-Id: 20031211214151.GS32686@redhate.futuretel.com
On Thu, Dec 11, 2003 at 10:27:05PM +0200, Martin Schlemmer wrote:
> On Thu, 2003-12-11 at 19:54, Seemant Kulleen wrote: > > On Thu, 2003-12-11 at 09:45, david@×××××××××.com wrote: > > > > > > > > what do you mean by modularise ? As in... have a core peice of code > > > for baselayout you can wrap a "heavy" layer or a "lite" layer around ? > > > or... just including a 'baselayout-lite' version of every init > > > script with each package ? > > > > The first > > Well, what will be too heavy? The core is > /sbin/{rc,runscript,runscript.sh,functions.sh} and stuff in > /lib/rcscripts. They only depend on bash and gawk. >
yeah... but lets take a look at the size of those files.. redhate root # wc -l /sbin/runscript /sbin/rc /sbin/runscript.sh /sbin/functions.sh 1 /sbin/runscript 650 /sbin/rc 529 /sbin/runscript.sh 623 /sbin/functions.sh 1803 total for an embedded system... do we really need 500-600 lines of sourced bash scripts to see a colored [ Ok ] ? I'm not sure about the other people here, but startup times are very crucial for my embedded platform, and on a machine with fairly limited resources things like sourcing that much bash is going to take a long time for each service... -- gentoo-embedded@g.o mailing list