summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Whitley2001-03-02 19:08:50 +0000
committerMark Whitley2001-03-02 19:08:50 +0000
commit450736cd3cf5e09a02620af7a93b41e0c1c67344 (patch)
tree9312ddb48e6404914c33a4bf9184d258f428eb22 /include
parent016771834af01be118621f89d92a3ecb29516a4f (diff)
downloadbusybox-450736cd3cf5e09a02620af7a93b41e0c1c67344.zip
busybox-450736cd3cf5e09a02620af7a93b41e0c1c67344.tar.gz
Added Magnus Damm's tftp applet to Busybox.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h24
2 files changed, 27 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index dbb2349..36817fe 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -356,6 +356,9 @@
#ifdef BB_TEST
APPLET(test, test_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_TFTP
+ APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
+#endif
#ifdef BB_TOUCH
APPLET(touch, touch_main, _BB_DIR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index efc943f..db79630 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -994,6 +994,30 @@
"Checks file types and compares values returning an exit\n" \
"code determined by the value of EXPRESSION."
+#ifdef BB_FEATURE_TFTP_GET
+ #define USAGE_TFTP_GET(a) a
+#else
+ #define USAGE_TFTP_GET(a)
+#endif
+#ifdef BB_FEATURE_TFTP_PUT
+ #define USAGE_TFTP_PUT(a) a
+#else
+ #define USAGE_TFTP_PUT(a)
+#endif
+
+#define tftp_trivial_usage \
+ "command SOURCE DEST"
+#define tftp_full_usage \
+ "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
+ "Commands:\n" \
+ USAGE_TFTP_GET( \
+ "\tget\tGet file from server SOURCE and store to local DEST.\n" \
+ ) \
+ USAGE_TFTP_PUT( \
+ "\tput\tPut local file SOURCE to server DEST.\n" \
+ ) \
+ "\nWhen nameing a server, use the syntax \"server:file\"."
+
#define touch_trivial_usage \
"[-c] file [file ...]"
#define touch_full_usage \