[RFC PATCH v2] Allow applets to be implemented as scripts

Ron Yorston rmy at pobox.com
Wed Nov 7 07:20:32 UTC 2018


Aaro Koskinen wrote:
>Not sure if either of these are good.

OK, we could use the old 'add another level of indirection' trick:

   config NOLOGIN_DEPENDENCIES
      bool "Dependencies for nologin"
      default y
      depends on NOLOGIN
      select CAT
      select ECHO
      select SLEEP
      help
      nologin is implemented as a shell script. It requires the
      following in the runtime environment:
         cat echo sleep
      If you know these will be available externally you can
      disable this option.

This documents the dependencies, turns them on by default but makes it
possible to turn them off.

Ron


More information about the busybox mailing list