diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-10 10:24:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-10 10:24:51 +0100 |
commit | b44e9760e101b0eddf49de2ecd5f8fcbf2f289a4 (patch) | |
tree | d57fe774bfaeaaf29b40178bc159c0bc05ed2b1a /loginutils/Config.src | |
parent | b2f00ac22a24b68e74978d04f443cfa01c665fe9 (diff) | |
download | busybox-w32-b44e9760e101b0eddf49de2ecd5f8fcbf2f289a4.tar.gz busybox-w32-b44e9760e101b0eddf49de2ecd5f8fcbf2f289a4.tar.bz2 busybox-w32-b44e9760e101b0eddf49de2ecd5f8fcbf2f289a4.zip |
getty: extend its config help
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/Config.src')
-rw-r--r-- | loginutils/Config.src | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/loginutils/Config.src b/loginutils/Config.src index 4c771bbc4..897d8fb0c 100644 --- a/loginutils/Config.src +++ b/loginutils/Config.src | |||
@@ -181,7 +181,19 @@ config GETTY | |||
181 | default y | 181 | default y |
182 | select FEATURE_SYSLOG | 182 | select FEATURE_SYSLOG |
183 | help | 183 | help |
184 | getty lets you log in on a tty, it is normally invoked by init. | 184 | getty lets you log in on a tty. It is normally invoked by init. |
185 | |||
186 | Note that you can save a few bytes by disabling it and | ||
187 | using login applet directly. | ||
188 | If you need to reset tty attributes before calling login, | ||
189 | this script approximates getty: | ||
190 | |||
191 | exec </dev/$1 >/dev/$1 2>&1 || exit 1 | ||
192 | stty sane; stty ispeed 38400; stty ospeed 38400 | ||
193 | reset | ||
194 | printf "%s login: " "`hostname`" | ||
195 | read -r login | ||
196 | exec /bin/login "$login" | ||
185 | 197 | ||
186 | config LOGIN | 198 | config LOGIN |
187 | bool "login" | 199 | bool "login" |