From 02d7cbfe92a94d51d2c9b11bab3dc6fe2cec7e89 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 13 Dec 2002 02:43:50 +0000 Subject: New applets, ftpget and ftpput --- include/applets.h | 6 ++++++ include/usage.h | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index bd2053039..5d8e7bb68 100644 --- a/include/applets.h +++ b/include/applets.h @@ -200,6 +200,12 @@ #ifdef CONFIG_FSCK_MINIX APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix) #endif +#ifdef CONFIG_FTPGET + APPLET(ftpget, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) +#endif +#ifdef CONFIG_FTPPUT + APPLET(ftpput, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_GETOPT APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index d3c1e5072..3b519e65d 100644 --- a/include/usage.h +++ b/include/usage.h @@ -602,6 +602,27 @@ "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \ "\t-f\tForce file system check." +#define ftpget_trivial_usage \ + "[options] remote-host local-directory remote-file" +#define ftpget_full_usage \ + "Retrieve a remote file via FTP.\n\n" \ + "Options:\n" \ + "\t-c, --continue Continue a previous transfer\n" \ + "\t-v, --verbose Verbose\n" \ + "\t-u, --username Username to be used\n" \ + "\t-p, --password Password to be used\n" \ + "\t-P, --port Port number to be used\n" + +#define ftpput_trivial_usage \ + "[options] remote-host remote-directory local-file" +#define ftpput_full_usage \ + "Store a local file on a remote machine via FTP.\n\n" \ + "Options:\n" \ + "\t-v, --verbose Verbose\n" \ + "\t-u, --username Username to be used\n" \ + "\t-p, --password Password to be used\n" \ + "\t-P, --port Port number to be used\n" + #define getopt_trivial_usage \ "[OPTIONS]..." #define getopt_full_usage \ -- cgit v1.2.3