X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/dc8a3b1bb16d57802d14ab2c1f85568f8ed0b618..8b4aee843bbd9d4e87e2c63b9c6d9d34c142a272:/package/busybox/config/loginutils/Config.in diff --git a/package/busybox/config/loginutils/Config.in b/package/busybox/config/loginutils/Config.in index 029884062..8c32851a2 100644 --- a/package/busybox/config/loginutils/Config.in +++ b/package/busybox/config/loginutils/Config.in @@ -1,3 +1,4 @@ +# DO NOT EDIT. This file is generated from Config.src # # For a description of the syntax of this configuration file, # see scripts/kbuild/config-language.txt. @@ -19,7 +20,7 @@ config BUSYBOX_CONFIG_REMOVE_SHELL config BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS bool "Support for shadow passwords" - default n + default y help Build support for shadow password in /etc/shadow. This file is only readable by root and thus the encrypted passwords are no longer @@ -191,7 +192,19 @@ config BUSYBOX_CONFIG_GETTY default n select BUSYBOX_CONFIG_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 2>&1 || exit 1 + reset + stty sane; stty ispeed 38400; stty ospeed 38400 + printf "%s login: " "`hostname`" + read -r login + exec /bin/login "$login" config BUSYBOX_CONFIG_LOGIN bool "login" @@ -206,10 +219,15 @@ config BUSYBOX_CONFIG_LOGIN config BUSYBOX_CONFIG_PAM bool "Support for PAM (Pluggable Authentication Modules)" default n + depends on DEVEL depends on BUSYBOX_CONFIG_LOGIN help Use PAM in login(1) instead of direct access to password database. + OpenWrt specific: + You should install libpam from the packages feed and compile it + before trying to build busysbox. + config BUSYBOX_CONFIG_LOGIN_SCRIPTS bool "Support for login scripts" depends on BUSYBOX_CONFIG_LOGIN