[BusyBox-cvs] busybox/include usage.h,1.189,1.190
Erik Andersen
andersen at busybox.net
Sun Feb 22 12:25:49 UTC 2004
Update of /var/cvs/busybox/include
In directory nail:/tmp/cvs-serv4139/include
Modified Files:
usage.h
Log Message:
Fernando Silveira writes:
Hi,
Well, I made this patch a long time ago (08/2002) because it was a
need of a project, but had no time to send it to you. It adds support
to `autologin' option of the telnet protocol. It has been used since
made with busybox 0.60.3 at production and I had no problems with it.
I have ported it to the HEAD revision of the CVS server (20040211) and
I hope you enjoy and apply it to the official sources. :)
Thanks a lot!
Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -d -r1.189 -r1.190
--- a/usage.h 22 Feb 2004 04:12:58 -0000 1.189
+++ b/usage.h 22 Feb 2004 12:25:47 -0000 1.190
@@ -2415,11 +2415,26 @@
"$ cat /tmp/foo\n" \
"Hello\n"
+#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
+#define telnet_trivial_usage \
+ "[-a] [-l USER] HOST [PORT]"
+#define telnet_full_usage \
+ "Telnet is used to establish interactive communication with another\n" \
+ "computer over a network using the TELNET protocol.\n\n" \
+ "Options:\n" \
+ "\t-a\t\tAttempt an automatic login with the USER variable.\n" \
+ "\t-l USER\t\tAttempt an automatic login with the USER argument.\n" \
+ "\tHOST\t\tThe official name, alias or the IP address of the\n" \
+ "\t\t\tremote host.\n" \
+ "\tPORT\t\tThe remote port number to connect to. If it is not\n" \
+ "\t\t\tspecified, the default telnet (23) port is used.\n"
+#else
#define telnet_trivial_usage \
"HOST [PORT]"
#define telnet_full_usage \
"Telnet is used to establish interactive communication with another\n"\
"computer over a network using the TELNET protocol."
+#endif
#ifdef CONFIG_FEATURE_TELNETD_INETD
#define telnetd_trivial_usage \
More information about the busybox-cvs
mailing list