cttyhack: move build system bits into cttyhack.c, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -104,7 +104,6 @@ IF_CPIO(APPLET(cpio, _BB_DIR_BIN, _BB_SUID_DROP))
|
||||
IF_CROND(APPLET(crond, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
|
||||
IF_CRONTAB(APPLET(crontab, _BB_DIR_USR_BIN, _BB_SUID_REQUIRE))
|
||||
IF_CRYPTPW(APPLET(cryptpw, _BB_DIR_USR_BIN, _BB_SUID_DROP))
|
||||
IF_CTTYHACK(APPLET(cttyhack, _BB_DIR_BIN, _BB_SUID_DROP))
|
||||
IF_CUT(APPLET_NOEXEC(cut, cut, _BB_DIR_USR_BIN, _BB_SUID_DROP, cut))
|
||||
IF_DATE(APPLET(date, _BB_DIR_BIN, _BB_SUID_DROP))
|
||||
IF_DC(APPLET(dc, _BB_DIR_USR_BIN, _BB_SUID_DROP))
|
||||
|
||||
@@ -678,17 +678,6 @@ INSERT
|
||||
"\n -S SALT" \
|
||||
) \
|
||||
|
||||
#define cttyhack_trivial_usage \
|
||||
"PROG ARGS"
|
||||
#define cttyhack_full_usage "\n\n" \
|
||||
"Give PROG a controlling tty if possible." \
|
||||
"\nExample for /etc/inittab (for busybox init):" \
|
||||
"\n ::respawn:/bin/cttyhack /bin/sh" \
|
||||
"\nGiving controlling tty to shell running with PID 1:" \
|
||||
"\n $ exec cttyhack sh" \
|
||||
"\nStarting interactive shell from boot shell script:" \
|
||||
"\n setsid cttyhack sh" \
|
||||
|
||||
#define cut_trivial_usage \
|
||||
"[OPTIONS] [FILE]..."
|
||||
#define cut_full_usage "\n\n" \
|
||||
|
||||
Reference in New Issue
Block a user