[RFC PATCH v2] Allow applets to be implemented as scripts
Aaro Koskinen
aaro.koskinen at iki.fi
Tue Nov 6 23:40:06 UTC 2018
On Tue, Nov 06, 2018 at 08:36:11PM +0000, Ron Yorston wrote:
> For the rest I suppose there are a couple of ways to look at it. The
> dependencies could be specified explicitly:
>
> depends on ASH_EMBEDDED_SCRIPTS && (ECHO || ASH_ECHO) && CAT && SLEEP
>
> Though this means that scripted applets aren't very discoverable because
> they'll only appear in the configuration menu if all their dependencies
> are enabled first.
>
> Alternatively the dependencies could be selected automatically:
>
> select ECHO
> select CAT
> select SLEEP
>
> But in this case it wouldn't be possible to turn off sleep from the
> configuration menu if nologin is enabled. And it isn't obvious why.
Not sure if either of these are good. The user could have e.g. toybox
or even GNU bloat to implement/replace some of the programs, but still
want to use an applet script from busybox. Maybe the config help text
should just list needed programs?
A.
More information about the busybox
mailing list