aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h16
-rw-r--r--include/usage.h41
2 files changed, 57 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index a26a06e21..41b783862 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -46,6 +46,12 @@
#ifdef BB_TEST
APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_ADDGROUP
+ APPLET(addgroup, addgroup_main, _BB_DIR_BIN)
+#endif
+#ifdef BB_ADDUSER
+ APPLET(adduser, adduser_main, _BB_DIR_BIN)
+#endif
#ifdef BB_ADJTIMEX
APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
#endif
@@ -104,6 +110,12 @@
#ifdef BB_DEALLOCVT
APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_DELGROUP
+ APPLET(delgroup, delgroup_main, _BB_DIR_BIN)
+#endif
+#ifdef BB_DELUSER
+ APPLET(deluser, deluser_main, _BB_DIR_BIN)
+#endif
#ifdef BB_DF
APPLET(df, df_main, _BB_DIR_BIN)
#endif
@@ -167,6 +179,9 @@
#ifdef BB_GETOPT
APPLET(getopt, getopt_main, _BB_DIR_BIN)
#endif
+#ifdef BB_GETTY
+ APPLET(getty, getty_main, _BB_DIR_SBIN)
+#endif
#ifdef BB_GREP
APPLET(grep, grep_main, _BB_DIR_BIN)
#endif
@@ -479,3 +494,4 @@
};
#endif
+
diff --git a/include/usage.h b/include/usage.h
index 13759d23f..ac980bf8c 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1,3 +1,19 @@
+#define addgroup_trivial_usage \
+ "[OPTIONS] <group_name>"
+#define addgroup_full_usage \
+ "Adds a group to the system" \
+ "Options:\n" \
+ "\t-g\t\tspecify gid\n"
+
+#define adduser_trivial_usage \
+ "[OPTIONS] <user_name>"
+#define adduser_full_usage \
+ "Adds a user to the system" \
+ "Options:\n" \
+ "\t-h\t\thome directory\n" \
+ "\t-s\t\tshell\n" \
+ "\t-g\t\tGECOS string\n"
+
#define adjtimex_trivial_usage \
"[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]"
#define adjtimex_full_usage \
@@ -215,6 +231,15 @@
#define deallocvt_full_usage \
"Deallocate unused virtual terminal /dev/ttyN"
+#define delgroup_trivial_usage \
+ "GROUP"
+#define delgroup_full_usage \
+ "Deletes group GROUP from the system"
+
+#define deluser_trivial_usage \
+ "USER"
+#define deluser_full_usage \
+ "Deletes user USER from the system"
#ifdef BB_FEATURE_HUMAN_READABLE
#define USAGE_HUMAN_READABLE(a) a
@@ -533,6 +558,22 @@
" esac\n" \
"done\n"
+#define getty_trivial_usage \
+ "getty [OPTIONS]... baud_rate,... line [termtype]"
+#define getty_full_usage \
+ "\nOpens a tty, prompts for a login name, then invokes /bin/login\n\n" \
+ "Options:\n" \
+ "\t-h\t\tEnable hardware (RTS/CTS) flow control.\n" \
+ "\t-i\t\tDo not display /etc/issue before running login.\n" \
+ "\t-L\t\tLocal line, so do not do carrier detect.\n" \
+ "\t-m\t\tGet baud rate from modem's CONNECT status message.\n" \
+ "\t-w\t\tWait for a CR or LF before sending /etc/issue.\n" \
+ "\t-l login_app\tInvoke login_app instead of /bin/login.\n" \
+ "\t-t timeout\tTerminate after timeout if no username is read.\n" \
+ "\t-I initstring\tSets the init string to send before anything else.\n" \
+ "\t-H login_host\tLog login_host into the utmp file as the hostname."
+
+
#define grep_trivial_usage \
"[-ihHnqvs] PATTERN [FILEs...]"
#define grep_full_usage \