aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h8
2 files changed, 11 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 9508c3a4b..60928aef2 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -464,6 +464,9 @@
#ifdef CONFIG_TELNET
APPLET(telnet, telnet_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_TELNETD
+ APPLET(telnetd, telnetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_TEST
APPLET(test, test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 33a81c467..1e0fe6805 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1801,6 +1801,14 @@
"Telnet is used to establish interactive communication with another\n"\
"computer over a network using the TELNET protocol."
+#define telnetd_trivial_usage \
+ "[OPTION]"
+#define telnetd_full_usage \
+ "Telnetd listens for incoming TELNET connections on PORT.\n"\
+ "Options:\n" \
+ "\t-p PORT\tlisten for connections on PORT (default 23)\n"\
+ "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)"
+
#define test_trivial_usage \
"EXPRESSION\n or [ EXPRESSION ]"
#define test_full_usage \