summaryrefslogtreecommitdiff
authorDenys Vlasenko <vda.linux@googlemail.com>2010-04-06 16:48:32 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-04-06 16:48:32 (GMT)
commit6dbbac5d4fbe1bd84f5dae4a271b4934a366d199 (patch)
tree9a5c182c33b1d125e45b10b2c12f027c721c6b9f
parentf6916dbed4233ef0e202d1b299cb5a2e9287a696 (diff)
downloadbusybox-6dbbac5d4fbe1bd84f5dae4a271b4934a366d199.zip
busybox-6dbbac5d4fbe1bd84f5dae4a271b4934a366d199.tar.gz
busybox-6dbbac5d4fbe1bd84f5dae4a271b4934a366d199.tar.bz2
Move utmp/wtmp support to "General configuration" section
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rw-r--r--Config.in20
-rw-r--r--coreutils/Config.in2
-rw-r--r--loginutils/Config.in16
-rw-r--r--miscutils/Config.in2
4 files changed, 22 insertions, 18 deletions
diff --git a/Config.in b/Config.in
index bb7dd6d..323b96c 100644
--- a/Config.in
+++ b/Config.in
@@ -252,6 +252,26 @@ config FEATURE_CLEAN_UP
Don't enable this unless you have a really good reason to clean
things up manually.
+config FEATURE_UTMP
+ bool "Support utmp file"
+ default n
+ help
+ The file /var/run/utmp is used to track who is currently logged in.
+ With this option on, certain applets (getty, login, telnetd etc)
+ will create and delete entries there.
+ "who" apples requires this option.
+
+config FEATURE_WTMP
+ bool "Support wtmp file"
+ default n
+ select FEATURE_UTMP
+ help
+ The file /var/run/wtmp is used to track when users have logged into
+ and logged out of the system.
+ With this option on, certain applets (getty, login, telnetd etc)
+ will append new entries there.
+ "last" apples requires this option.
+
config FEATURE_PIDFILE
bool "Support writing pidfiles"
default n
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 297f465..ead632a 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -825,7 +825,7 @@ config FEATURE_WC_LARGE
config WHO
bool "who"
default n
- select FEATURE_UTMP
+ depends on FEATURE_UTMP
help
who is used to show who is logged on.
diff --git a/loginutils/Config.in b/loginutils/Config.in
index f6c0e2e..a9b5f5a 100644
--- a/loginutils/Config.in
+++ b/loginutils/Config.in
@@ -181,22 +181,6 @@ config GETTY
help
getty lets you log in on a tty, it is normally invoked by init.
-config FEATURE_UTMP
- bool "Support utmp file"
- depends on GETTY || LOGIN || SU || WHO
- default n
- help
- The file /var/run/utmp is used to track who is currently logged in.
-
-config FEATURE_WTMP
- bool "Support wtmp file"
- depends on GETTY || LOGIN || SU || LAST
- default n
- select FEATURE_UTMP
- help
- The file /var/run/wtmp is used to track when user's have logged into
- and logged out of the system.
-
config LOGIN
bool "login"
default n
diff --git a/miscutils/Config.in b/miscutils/Config.in
index ebf98f9..0469b63 100644
--- a/miscutils/Config.in
+++ b/miscutils/Config.in
@@ -317,7 +317,7 @@ config INOTIFYD
config LAST
bool "last"
default n
- select FEATURE_WTMP
+ depends on FEATURE_WTMP
help
'last' displays a list of the last users that logged into the system.