aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-02-10 10:24:51 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-02-10 10:24:51 +0100
commitb44e9760e101b0eddf49de2ecd5f8fcbf2f289a4 (patch)
treed57fe774bfaeaaf29b40178bc159c0bc05ed2b1a /loginutils
parentb2f00ac22a24b68e74978d04f443cfa01c665fe9 (diff)
downloadbusybox-b44e9760e101b0eddf49de2ecd5f8fcbf2f289a4.tar.gz
getty: extend its config help
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/Config.src14
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
default y
select FEATURE_SYSLOG
help
- getty lets you log in on a tty, it is normally invoked by init.
+ getty lets you log in on a tty. It is normally invoked by init.
+
+ Note that you can save a few bytes by disabling it and
+ using login applet directly.
+ If you need to reset tty attributes before calling login,
+ this script approximates getty:
+
+ exec </dev/$1 >/dev/$1 2>&1 || exit 1
+ stty sane; stty ispeed 38400; stty ospeed 38400
+ reset
+ printf "%s login: " "`hostname`"
+ read -r login
+ exec /bin/login "$login"
config LOGIN
bool "login"