1 |
On Thu, Dec 11, 2003 at 10:27:05PM +0200, Martin Schlemmer wrote: |
2 |
> On Thu, 2003-12-11 at 19:54, Seemant Kulleen wrote: |
3 |
> > On Thu, 2003-12-11 at 09:45, david@×××××××××.com wrote: |
4 |
> > |
5 |
> > > |
6 |
> > > what do you mean by modularise ? As in... have a core peice of code |
7 |
> > > for baselayout you can wrap a "heavy" layer or a "lite" layer around ? |
8 |
> > > or... just including a 'baselayout-lite' version of every init |
9 |
> > > script with each package ? |
10 |
> > |
11 |
> > The first |
12 |
> |
13 |
> Well, what will be too heavy? The core is |
14 |
> /sbin/{rc,runscript,runscript.sh,functions.sh} and stuff in |
15 |
> /lib/rcscripts. They only depend on bash and gawk. |
16 |
> |
17 |
|
18 |
yeah... but lets take a look at the size of those files.. |
19 |
|
20 |
redhate root # wc -l /sbin/runscript /sbin/rc /sbin/runscript.sh |
21 |
/sbin/functions.sh |
22 |
1 /sbin/runscript |
23 |
650 /sbin/rc |
24 |
529 /sbin/runscript.sh |
25 |
623 /sbin/functions.sh |
26 |
1803 total |
27 |
|
28 |
for an embedded system... do we really need 500-600 lines of sourced |
29 |
bash scripts to see a colored [ Ok ] ? |
30 |
|
31 |
I'm not sure about the other people here, but startup times are very |
32 |
crucial for my embedded platform, and on a machine with fairly limited |
33 |
resources things like sourcing that much bash is going to take a long |
34 |
time for each service... |
35 |
|
36 |
-- |
37 |
gentoo-embedded@g.o mailing list |