diff options
author | Mark Whitley <markw@lineo.com> | 2001-03-02 19:08:50 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-03-02 19:08:50 +0000 |
commit | 450736cd3cf5e09a02620af7a93b41e0c1c67344 (patch) | |
tree | 9312ddb48e6404914c33a4bf9184d258f428eb22 /include | |
parent | 016771834af01be118621f89d92a3ecb29516a4f (diff) | |
download | busybox-w32-450736cd3cf5e09a02620af7a93b41e0c1c67344.tar.gz busybox-w32-450736cd3cf5e09a02620af7a93b41e0c1c67344.tar.bz2 busybox-w32-450736cd3cf5e09a02620af7a93b41e0c1c67344.zip |
Added Magnus Damm's tftp applet to Busybox.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 24 |
2 files changed, 27 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index dbb234963..36817fef7 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -356,6 +356,9 @@ | |||
356 | #ifdef BB_TEST | 356 | #ifdef BB_TEST |
357 | APPLET(test, test_main, _BB_DIR_USR_BIN) | 357 | APPLET(test, test_main, _BB_DIR_USR_BIN) |
358 | #endif | 358 | #endif |
359 | #ifdef BB_TFTP | ||
360 | APPLET(tftp, tftp_main, _BB_DIR_USR_BIN) | ||
361 | #endif | ||
359 | #ifdef BB_TOUCH | 362 | #ifdef BB_TOUCH |
360 | APPLET(touch, touch_main, _BB_DIR_BIN) | 363 | APPLET(touch, touch_main, _BB_DIR_BIN) |
361 | #endif | 364 | #endif |
diff --git a/include/usage.h b/include/usage.h index efc943f68..db7963043 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -994,6 +994,30 @@ | |||
994 | "Checks file types and compares values returning an exit\n" \ | 994 | "Checks file types and compares values returning an exit\n" \ |
995 | "code determined by the value of EXPRESSION." | 995 | "code determined by the value of EXPRESSION." |
996 | 996 | ||
997 | #ifdef BB_FEATURE_TFTP_GET | ||
998 | #define USAGE_TFTP_GET(a) a | ||
999 | #else | ||
1000 | #define USAGE_TFTP_GET(a) | ||
1001 | #endif | ||
1002 | #ifdef BB_FEATURE_TFTP_PUT | ||
1003 | #define USAGE_TFTP_PUT(a) a | ||
1004 | #else | ||
1005 | #define USAGE_TFTP_PUT(a) | ||
1006 | #endif | ||
1007 | |||
1008 | #define tftp_trivial_usage \ | ||
1009 | "command SOURCE DEST" | ||
1010 | #define tftp_full_usage \ | ||
1011 | "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \ | ||
1012 | "Commands:\n" \ | ||
1013 | USAGE_TFTP_GET( \ | ||
1014 | "\tget\tGet file from server SOURCE and store to local DEST.\n" \ | ||
1015 | ) \ | ||
1016 | USAGE_TFTP_PUT( \ | ||
1017 | "\tput\tPut local file SOURCE to server DEST.\n" \ | ||
1018 | ) \ | ||
1019 | "\nWhen nameing a server, use the syntax \"server:file\"." | ||
1020 | |||
997 | #define touch_trivial_usage \ | 1021 | #define touch_trivial_usage \ |
998 | "[-c] file [file ...]" | 1022 | "[-c] file [file ...]" |
999 | #define touch_full_usage \ | 1023 | #define touch_full_usage \ |