From ad117d8a213979fae1bf6ec9162c2e998800b096 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 5 Oct 2001 04:40:37 +0000 Subject: Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups. --- applets/usage.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'applets') diff --git a/applets/usage.h b/applets/usage.h index 0b095a4da..9dc7fae56 100644 --- a/applets/usage.h +++ b/applets/usage.h @@ -1615,13 +1615,19 @@ #else #define USAGE_TFTP_PUT(a) #endif +#ifdef BB_FEATURE_TFTP_BLOCKSIZE + #define USAGE_TFTP_BS(a) a +#else + #define USAGE_TFTP_BS(a) +#endif #define tftp_trivial_usage \ "[OPTION]... HOST [PORT]" #define tftp_full_usage \ "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \ "Options:\n" \ - "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \ + "\t-l FILE\tLocal FILE.\n" \ + "\t-r FILE\tRemote FILE.\n" \ USAGE_TFTP_GET( \ "\t-g\tGet file.\n" \ ) \ @@ -1629,7 +1635,9 @@ USAGE_TFTP_PUT( \ "\t-p\tPut file.\n" \ ) \ - "\t-r FILE\tTransfer remote FILE.\n" + USAGE_TFTP_BS( \ + "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \ + ) #define touch_trivial_usage \ "[-c] FILE [FILE ...]" -- cgit v1.2.3