aboutsummaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-04-11 03:29:49 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-04-11 03:29:49 +0200
commit5bc8c005a8e15c43285bc595a8d404de67a482ac (patch)
tree98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /networking/tftp.c
parent73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff)
downloadbusybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2
busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index 35cf0dbd9..f52e49d51 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -18,6 +18,39 @@
18 * 18 *
19 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 19 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
20 */ 20 */
21
22//usage:#define tftp_trivial_usage
23//usage: "[OPTIONS] HOST [PORT]"
24//usage:#define tftp_full_usage "\n\n"
25//usage: "Transfer a file from/to tftp server\n"
26//usage: "\nOptions:"
27//usage: "\n -l FILE Local FILE"
28//usage: "\n -r FILE Remote FILE"
29//usage: IF_FEATURE_TFTP_GET(
30//usage: "\n -g Get file"
31//usage: )
32//usage: IF_FEATURE_TFTP_PUT(
33//usage: "\n -p Put file"
34//usage: )
35//usage: IF_FEATURE_TFTP_BLOCKSIZE(
36//usage: "\n -b SIZE Transfer blocks of SIZE octets"
37//usage: )
38//usage:
39//usage:#define tftpd_trivial_usage
40//usage: "[-cr] [-u USER] [DIR]"
41//usage:#define tftpd_full_usage "\n\n"
42//usage: "Transfer a file on tftp client's request\n"
43//usage: "\n"
44//usage: "tftpd should be used as an inetd service.\n"
45//usage: "tftpd's line for inetd.conf:\n"
46//usage: " 69 dgram udp nowait root tftpd tftpd /files/to/serve\n"
47//usage: "It also can be ran from udpsvd:\n"
48//usage: " udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve\n"
49//usage: "\nOptions:"
50//usage: "\n -r Prohibit upload"
51//usage: "\n -c Allow file creation via upload"
52//usage: "\n -u Access files as USER"
53
21#include "libbb.h" 54#include "libbb.h"
22 55
23#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT 56#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT