diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-20 01:38:56 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-20 01:38:56 +0200 |
| commit | 9e244c760042e764d3504dc94cf79b41938d9b1d (patch) | |
| tree | 299bc7c3a90afa63b87dc9fc3a31866794cf3ee3 /include/usage.src.h | |
| parent | f04ca74ab5eb6ee57a573c6e1ab3e84d3f0a0af8 (diff) | |
| download | busybox-w32-9e244c760042e764d3504dc94cf79b41938d9b1d.tar.gz busybox-w32-9e244c760042e764d3504dc94cf79b41938d9b1d.tar.bz2 busybox-w32-9e244c760042e764d3504dc94cf79b41938d9b1d.zip | |
udhcpc: move usage text to .c file. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/usage.src.h')
| -rw-r--r-- | include/usage.src.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 5d7767bb4..b73ca4d89 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
| @@ -4232,84 +4232,6 @@ INSERT | |||
| 4232 | "# tunctl\n" \ | 4232 | "# tunctl\n" \ |
| 4233 | "# tunctl -d tun0\n" | 4233 | "# tunctl -d tun0\n" |
| 4234 | 4234 | ||
| 4235 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 | ||
| 4236 | # define IF_UDHCP_VERBOSE(...) __VA_ARGS__ | ||
| 4237 | #else | ||
| 4238 | # define IF_UDHCP_VERBOSE(...) | ||
| 4239 | #endif | ||
| 4240 | #define udhcpc_trivial_usage \ | ||
| 4241 | "[-fbnq"IF_UDHCP_VERBOSE("v")"oCR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]\n" \ | ||
| 4242 | " [-H HOSTNAME] [-c CID] [-V VENDOR] [-O DHCP_OPT]..." IF_FEATURE_UDHCP_PORT(" [-P N]") | ||
| 4243 | #define udhcpc_full_usage "\n" \ | ||
| 4244 | IF_LONG_OPTS( \ | ||
| 4245 | "\n -i,--interface IFACE Interface to use (default eth0)" \ | ||
| 4246 | "\n -p,--pidfile FILE Create pidfile" \ | ||
| 4247 | "\n -r,--request IP IP address to request" \ | ||
| 4248 | "\n -s,--script PROG Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \ | ||
| 4249 | "\n -t,--retries N Send up to N discover packets" \ | ||
| 4250 | "\n -T,--timeout N Pause between packets (default 3 seconds)" \ | ||
| 4251 | "\n -A,--tryagain N Wait N seconds after failure (default 20)" \ | ||
| 4252 | "\n -f,--foreground Run in foreground" \ | ||
| 4253 | USE_FOR_MMU( \ | ||
| 4254 | "\n -b,--background Background if lease is not obtained" \ | ||
| 4255 | ) \ | ||
| 4256 | "\n -S,--syslog Log to syslog too" \ | ||
| 4257 | "\n -n,--now Exit if lease is not obtained" \ | ||
| 4258 | "\n -q,--quit Exit after obtaining lease" \ | ||
| 4259 | "\n -R,--release Release IP on exit" \ | ||
| 4260 | IF_FEATURE_UDHCP_PORT( \ | ||
| 4261 | "\n -P,--client-port N Use port N (default 68)" \ | ||
| 4262 | ) \ | ||
| 4263 | IF_FEATURE_UDHCPC_ARPING( \ | ||
| 4264 | "\n -a,--arping Use arping to validate offered address" \ | ||
| 4265 | ) \ | ||
| 4266 | "\n -O,--request-option OPT Request DHCP option OPT (cumulative)" \ | ||
| 4267 | "\n -o,--no-default-options Don't request any options (unless -O is given)" \ | ||
| 4268 | "\n -x OPT:VAL Include option OPT in sent packets (cumulative)" \ | ||
| 4269 | "\n -F,--fqdn NAME Ask server to update DNS mapping for NAME" \ | ||
| 4270 | "\n -H,-h,--hostname NAME Send NAME as client hostname (default none)" \ | ||
| 4271 | "\n -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')" \ | ||
| 4272 | "\n -c,--clientid CLIENTID Client identifier (default own MAC)" \ | ||
| 4273 | "\n -C,--clientid-none Don't send client identifier" \ | ||
| 4274 | IF_UDHCP_VERBOSE( \ | ||
| 4275 | "\n -v Verbose" \ | ||
| 4276 | ) \ | ||
| 4277 | ) \ | ||
| 4278 | IF_NOT_LONG_OPTS( \ | ||
| 4279 | "\n -i IFACE Interface to use (default eth0)" \ | ||
| 4280 | "\n -p FILE Create pidfile" \ | ||
| 4281 | "\n -r IP IP address to request" \ | ||
| 4282 | "\n -s PROG Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \ | ||
| 4283 | "\n -t N Send up to N discover packets" \ | ||
| 4284 | "\n -T N Pause between packets (default 3 seconds)" \ | ||
| 4285 | "\n -A N Wait N seconds (default 20) after failure" \ | ||
| 4286 | "\n -x OPT:VAL Include option OPT in sent packets" \ | ||
| 4287 | "\n -O OPT Request DHCP option OPT (cumulative)" \ | ||
| 4288 | "\n -o Don't request any options (unless -O is given)" \ | ||
| 4289 | "\n -f Run in foreground" \ | ||
| 4290 | USE_FOR_MMU( \ | ||
| 4291 | "\n -b Background if lease is not obtained" \ | ||
| 4292 | ) \ | ||
| 4293 | "\n -S Log to syslog too" \ | ||
| 4294 | "\n -n Exit if lease is not obtained" \ | ||
| 4295 | "\n -q Exit after obtaining lease" \ | ||
| 4296 | "\n -R Release IP on exit" \ | ||
| 4297 | IF_FEATURE_UDHCP_PORT( \ | ||
| 4298 | "\n -P N Use port N (default 68)" \ | ||
| 4299 | ) \ | ||
| 4300 | IF_FEATURE_UDHCPC_ARPING( \ | ||
| 4301 | "\n -a Use arping to validate offered address" \ | ||
| 4302 | ) \ | ||
| 4303 | "\n -F NAME Ask server to update DNS mapping for NAME" \ | ||
| 4304 | "\n -H,-h NAME Send NAME as client hostname (default none)" \ | ||
| 4305 | "\n -V VENDOR Vendor identifier (default 'udhcp VERSION')" \ | ||
| 4306 | "\n -c CLIENTID Client identifier (default own MAC)" \ | ||
| 4307 | "\n -C Don't send client identifier" \ | ||
| 4308 | IF_UDHCP_VERBOSE( \ | ||
| 4309 | "\n -v Verbose" \ | ||
| 4310 | ) \ | ||
| 4311 | ) \ | ||
| 4312 | |||
| 4313 | #define udhcpd_trivial_usage \ | 4235 | #define udhcpd_trivial_usage \ |
| 4314 | "[-fS]" IF_FEATURE_UDHCP_PORT(" [-P N]") " [CONFFILE]" \ | 4236 | "[-fS]" IF_FEATURE_UDHCP_PORT(" [-P N]") " [CONFFILE]" \ |
| 4315 | 4237 | ||
