diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cttyhack.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/cttyhack.c b/shell/cttyhack.c index 849fe9e48..ec1b6c429 100644 --- a/shell/cttyhack.c +++ b/shell/cttyhack.c | |||
@@ -4,12 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | #include "libbb.h" | ||
8 | |||
9 | //applet:IF_CTTYHACK(APPLET_NOEXEC(cttyhack, cttyhack, BB_DIR_BIN, BB_SUID_DROP, cttyhack)) | ||
10 | |||
11 | //kbuild:lib-$(CONFIG_CTTYHACK) += cttyhack.o | ||
12 | |||
13 | //config:config CTTYHACK | 7 | //config:config CTTYHACK |
14 | //config: bool "cttyhack (2.5 kb)" | 8 | //config: bool "cttyhack (2.5 kb)" |
15 | //config: default y | 9 | //config: default y |
@@ -54,6 +48,10 @@ | |||
54 | //config: | 48 | //config: |
55 | //config: # getty 115200 $(cttyhack) | 49 | //config: # getty 115200 $(cttyhack) |
56 | 50 | ||
51 | //applet:IF_CTTYHACK(APPLET_NOEXEC(cttyhack, cttyhack, BB_DIR_BIN, BB_SUID_DROP, cttyhack)) | ||
52 | |||
53 | //kbuild:lib-$(CONFIG_CTTYHACK) += cttyhack.o | ||
54 | |||
57 | //usage:#define cttyhack_trivial_usage | 55 | //usage:#define cttyhack_trivial_usage |
58 | //usage: "[PROG ARGS]" | 56 | //usage: "[PROG ARGS]" |
59 | //usage:#define cttyhack_full_usage "\n\n" | 57 | //usage:#define cttyhack_full_usage "\n\n" |
@@ -65,6 +63,8 @@ | |||
65 | //usage: "\nStarting interactive shell from boot shell script:" | 63 | //usage: "\nStarting interactive shell from boot shell script:" |
66 | //usage: "\n setsid cttyhack sh" | 64 | //usage: "\n setsid cttyhack sh" |
67 | 65 | ||
66 | #include "libbb.h" | ||
67 | |||
68 | #if !defined(__linux__) && !defined(TIOCGSERIAL) && !ENABLE_WERROR | 68 | #if !defined(__linux__) && !defined(TIOCGSERIAL) && !ENABLE_WERROR |
69 | # warning cttyhack will not be able to detect a controlling tty on this system | 69 | # warning cttyhack will not be able to detect a controlling tty on this system |
70 | #endif | 70 | #endif |