71df2d3589
Embedded scripts require a shell to be present in the BusyBox binary. Allow either ash or hush to be used for this purpose. If both are enabled ash takes precedence. The size of the binary is unchanged in the default configuration: both ash and hush are present but support for embedded scripts isn't compiled into hush. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
28 lines
856 B
C
28 lines
856 B
C
//config:config NOLOGIN
|
|
//config: bool "nologin"
|
|
//config: default y
|
|
//config: depends on FEATURE_SH_EMBEDDED_SCRIPTS
|
|
//config: help
|
|
//config: Politely refuse a login
|
|
//config:
|
|
//config:config NOLOGIN_DEPENDENCIES
|
|
//config: bool "Enable dependencies for nologin"
|
|
//config: default y
|
|
//config: depends on NOLOGIN
|
|
//config: select CAT
|
|
//config: select ECHO
|
|
//config: select SLEEP
|
|
//config: help
|
|
//config: nologin is implemented as a shell script. It requires the
|
|
//config: following in the runtime environment:
|
|
//config: cat echo sleep
|
|
//config: If you know these will be available externally you can
|
|
//config: disable this option.
|
|
|
|
//applet:IF_NOLOGIN(APPLET_SCRIPTED(nologin, scripted, BB_DIR_USR_SBIN, BB_SUID_DROP, nologin))
|
|
|
|
//usage:#define nologin_trivial_usage
|
|
//usage: ""
|
|
//usage:#define nologin_full_usage "\n\n"
|
|
//usage: "Politely refuse a login"
|