1 |
Mike Frysinger schrieb: |
2 |
>>>> I would be willing to help creating these. Perhaps |
3 |
>>>> they could be included in busybox package and installed as an option? |
4 |
>>> no |
5 |
>> just an idea... There could be an additional busybox-initd package with |
6 |
>> those scripts. The ebuild could have busybox as dependency and if for |
7 |
>> example USE=syslog, it would install check the busybox config if syslog |
8 |
>> is enabled and it would provide a virtual/logger. |
9 |
I had this idea, too, but after I have send my email. |
10 |
|
11 |
> |
12 |
> i think the best from a support stand point would be to have a busybox-initd |
13 |
> package that'd parse the busybox config file to see what is enabled, and then |
14 |
> copy the relevant init.d scripts from the portage tree. creating independent |
15 |
> scripts is just a maintenance nightmare. |
16 |
> |
17 |
> so if busybox supports hdparm, it'd do: |
18 |
> newinitd ${PORTDIR}/sys-apps/hdparm/files/hdparm-init-8 hdparm |
19 |
> newconfd ${PORTDIR}/sys-apps/hdparm/files/hdparm-conf.d.3 hdparm |
20 |
|
21 |
That sounds really interesting. Never realized, that something like this |
22 |
could be used. But if you do this, all scripts have to work with |
23 |
"standard" tool and bb version, e.g. bb syslogd does not create a pid |
24 |
file in /var/run. There are also some things, which work different with |
25 |
bb, e.g. setting consolefont and keymap. And there are some tools, where |
26 |
I do not see a comparing standard tool (or at least I think there is no |
27 |
tool), e.g. httpd of busybox. |
28 |
|
29 |
So perhaps the best method would be making standard tools of bb like |
30 |
syslogd or hdparm working with the init scripts and create init scripts |
31 |
for all other bb tools of interest, where no init script exists? In case |
32 |
of hwclock this is already done by Roy in baselayout-2, but for |
33 |
consolefont and keymap loading he proposes to create separate init |
34 |
scripts, since the bb tools do work completely different. |
35 |
|
36 |
Regards |
37 |
Marc |
38 |
|
39 |
-- |
40 |
gentoo-embedded@g.o mailing list |