diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 13:19:57 +1000 |
|---|---|---|
| committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 13:19:57 +1000 |
| commit | ec71cb6575290eb6ad716e4f620db445d8e1bcd3 (patch) | |
| tree | 219a5dba000e0ad98ff563bc6f7d45d274d3a178 /shell/Config.src | |
| parent | b5139d7cd8982d9b683cb1babf0bd759076aaab0 (diff) | |
| parent | 6814cbc9288601840aedb372e2bd84dab76ffa43 (diff) | |
| download | busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.tar.gz busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.tar.bz2 busybox-w32-ec71cb6575290eb6ad716e4f620db445d8e1bcd3.zip | |
Merge branch 'origin/master' (early part)
Diffstat (limited to 'shell/Config.src')
| -rw-r--r-- | shell/Config.src | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/shell/Config.src b/shell/Config.src index 6389d943a..c9c2439e7 100644 --- a/shell/Config.src +++ b/shell/Config.src | |||
| @@ -62,29 +62,6 @@ config FEATURE_BASH_IS_NONE | |||
| 62 | endchoice | 62 | endchoice |
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | config LASH | ||
| 66 | bool "lash (deprecated: aliased to hush)" | ||
| 67 | default n | ||
| 68 | select HUSH | ||
| 69 | help | ||
| 70 | lash is deprecated and will be removed, please migrate to hush. | ||
| 71 | |||
| 72 | config MSH | ||
| 73 | bool "msh (deprecated: please use hush)" | ||
| 74 | default n | ||
| 75 | select HUSH | ||
| 76 | help | ||
| 77 | msh is deprecated and will be removed, please migrate to hush. | ||
| 78 | If there is a feature msh has but hush does not, please let us know. | ||
| 79 | |||
| 80 | # The minix shell (adds just 30k) is quite complete and handles things | ||
| 81 | # like for/do/done, case/esac and all the things you expect a Bourne | ||
| 82 | # shell to do. It is not always pedantically correct about Bourne | ||
| 83 | # shell grammar (try running the shell testscript "tests/sh.testcases" | ||
| 84 | # on it and compare vs bash) but for most things it works quite well. | ||
| 85 | # It uses only vfork, so it can be used on uClinux systems. | ||
| 86 | |||
| 87 | |||
| 88 | config SH_MATH_SUPPORT | 65 | config SH_MATH_SUPPORT |
| 89 | bool "POSIX math support" | 66 | bool "POSIX math support" |
| 90 | default y | 67 | default y |
| @@ -158,40 +135,4 @@ config FEATURE_SH_NOFORK | |||
| 158 | 135 | ||
| 159 | This feature is relatively new. Use with care. | 136 | This feature is relatively new. Use with care. |
| 160 | 137 | ||
| 161 | config CTTYHACK | ||
| 162 | bool "cttyhack" | ||
| 163 | default y | ||
| 164 | help | ||
| 165 | One common problem reported on the mailing list is "can't access tty; | ||
| 166 | job control turned off" error message which typically appears when | ||
| 167 | one tries to use shell with stdin/stdout opened to /dev/console. | ||
| 168 | This device is special - it cannot be a controlling tty. | ||
| 169 | |||
| 170 | Proper solution is to use correct device instead of /dev/console. | ||
| 171 | |||
| 172 | cttyhack provides "quick and dirty" solution to this problem. | ||
| 173 | It analyzes stdin with various ioctls, trying to determine whether | ||
| 174 | it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line). | ||
| 175 | If it detects one, it closes stdin/out/err and reopens that device. | ||
| 176 | Then it executes given program. Opening the device will make | ||
| 177 | that device a controlling tty. This may require cttyhack | ||
| 178 | to be a session leader. | ||
| 179 | |||
| 180 | Example for /etc/inittab (for busybox init): | ||
| 181 | |||
| 182 | ::respawn:/bin/cttyhack /bin/sh | ||
| 183 | |||
| 184 | Starting an interactive shell from boot shell script: | ||
| 185 | |||
| 186 | setsid cttyhack sh | ||
| 187 | |||
| 188 | Giving controlling tty to shell running with PID 1: | ||
| 189 | |||
| 190 | # exec cttyhack sh | ||
| 191 | |||
| 192 | Without cttyhack, you need to know exact tty name, | ||
| 193 | and do something like this: | ||
| 194 | |||
| 195 | # exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1' | ||
| 196 | |||
| 197 | endmenu | 138 | endmenu |
