applet runlevel [was: Re: CONFIG_* defines]
Bernhard Fischer
rep.nop at aon.at
Wed Sep 7 08:01:32 UTC 2005
On Wed, Sep 07, 2005 at 11:38:58AM +1000, David Seikel wrote:
>On Tue, 6 Sep 2005 22:32:58 +0200 Bernhard Fischer <rep.nop at aon.at>
>wrote:
>
>> yes, IMHO it should. Let me first try to get fixed versions of pidof,
>> ps, df, find_mount_point() applied before i go about an applet which
>> may or may not be implemented in C or as
>> runlevel_main () {
>> [ $.. -a $.. ] || return 1 ; echo $PREVLEVEL\ $RUNLEVEL ; return 0 ; }
>>
>> It was primarily ment as an arbitrary example for the BUSYBOX_* config
>> namespace.
>
>You might want to have a look at http://urunlevel.sourceforge.net/
>before you continue with this. I have done all this runlevel stuff for
>busybox already.
>
>Should I just post it here? It's quite large. B-(
well, the example isn't too large:
$ size miscutils/runlevel.o*
text data bss dec hex filename
125 0 0 125 7d miscutils/runlevel.o
and if BUSYBOX_FEATURE_UTMP is not set, the example is even quite small
$ size miscutils/runlevel.o*
text data bss dec hex filename
25 0 0 25 19 miscutils/runlevel.o
More information about the busybox
mailing list