aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-08 22:26:06 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-08 22:26:06 +0000
commit2e9c25700061b23982f8600288178c1f6a370c1e (patch)
treeb9523c8010e85f5879a89e2a4b7e202d674e1e1c /include
parentf1c56a9306680874577abf01749c4b33877eb89a (diff)
downloadbusybox-2e9c25700061b23982f8600288178c1f6a370c1e.tar.gz
Implement a minimalist 'last' which allows the LEAF project to
no longer need dumtp. Remove the 'dumtp' applet. -Erik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h6
-rw-r--r--include/usage.h22
2 files changed, 9 insertions, 19 deletions
diff --git a/include/applets.h b/include/applets.h
index 2ee816465..cd5065103 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -169,9 +169,6 @@
#ifdef CONFIG_DUMPLEASES
APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
-#ifdef CONFIG_DUTMP
- APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
-#endif
#ifdef CONFIG_ECHO
APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
@@ -316,6 +313,9 @@
#ifdef CONFIG_LASH
APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_LAST
+ APPLET(last, last_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_LENGTH
APPLET(length, length_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 7bf9c8952..35a3d5033 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -461,21 +461,6 @@
"\t-r,\t--remaining\tInterepret lease times as time remaing\n" \
"\t-a,\t--absolute\tInterepret lease times as expire time\n"
-#define dutmp_trivial_usage \
- "[FILE]"
-#define dutmp_full_usage \
- "Dump utmp file format (pipe delimited) from FILE\n" \
- "or stdin to stdout. (i.e., 'dutmp /var/run/utmp')"
-#define dutmp_example_usage \
- "$ dutmp /var/run/utmp\n" \
- "8|7||si|||0|0|0|955637625|760097|0\n" \
- "2|0|~|~~|reboot||0|0|0|955637625|782235|0\n" \
- "1|20020|~|~~|runlevel||0|0|0|955637625|800089|0\n" \
- "8|125||l4|||0|0|0|955637629|998367|0\n" \
- "6|245|tty1|1|LOGIN||0|0|0|955637630|998974|0\n" \
- "6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0\n" \
- "7|336|pts/0|vt00|andersen|:0.0|0|0|0|955637763|0|0\n"
-
#ifdef CONFIG_FEATURE_FANCY_ECHO
#define USAGE_FANCY_ECHO(a) a
#else
@@ -2068,7 +2053,7 @@
"[FILE]...\n" \
"or: sh -c command [args]..."
#define lash_full_usage \
- "lash: The BusyBox LAme SHell (command interpreter)"
+ "The BusyBox LAme SHell (command interpreter)"
#define lash_notes_usage \
"This command does not yet have proper documentation.\n" \
"\n" \
@@ -2079,6 +2064,11 @@
"use ash or bash. If you just need a very simple and extremely small shell,\n" \
"this will do the job."
+#define last_trivial_usage \
+ ""
+#define last_full_usage \
+ "Shows listing of the last users that logged into the system"
+
#define sha1sum_trivial_usage \
"[OPTION] [FILE]"
#define sha1sum_full_usage \