summaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorDenis Vlasenko2008-06-13 20:44:05 +0000
committerDenis Vlasenko2008-06-13 20:44:05 +0000
commit21765fa063830923d13426ec6989c16da9210e49 (patch)
treeb564726ae79740552bff9bf6412e97f1ae34fbfd /include/usage.h
parent76f812803b72b5ccca764cdc7bfc42276fd70413 (diff)
downloadbusybox-21765fa063830923d13426ec6989c16da9210e49.zip
busybox-21765fa063830923d13426ec6989c16da9210e49.tar.gz
udhcpc: kill undocumented -W, it was a no-op.
fix option parsing in the case some CONFIG_x are off. disable -b on NOMMU, make backgrounding work correctly (if a bit differently from MMU case). Previously, it wasn't working at all. stop using global data for flags in main(), opt bitfield works as well. function old new delta cryptpw_main 177 153 -24 packed_usage 24478 24452 -26 client_background 26 - -26 udhcpc_main 2462 2372 -90 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
Diffstat (limited to 'include/usage.h')
-rw-r--r--include/usage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h
index 3eb5b48..4fba0e3 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -4246,7 +4246,9 @@
"\n -O,--request-option=OPT Request DHCP option OPT (cumulative)" \
"\n -o,--no-default-options Do not request any options (unless -O is also given)" \
"\n -f,--foreground Run in foreground" \
+ USE_FOR_MMU( \
"\n -b,--background Background if lease is not immediately obtained" \
+ ) \
"\n -S,--syslog Log to syslog too" \
"\n -n,--now Exit with failure if lease is not immediately obtained" \
"\n -q,--quit Quit after obtaining lease" \
@@ -4273,7 +4275,9 @@
"\n -O OPT Request DHCP option OPT (cumulative)" \
"\n -o Do not request any options (unless -O is also given)" \
"\n -f Run in foreground" \
+ USE_FOR_MMU( \
"\n -b Background if lease is not immediately obtained" \
+ ) \
"\n -S Log to syslog too" \
"\n -n Exit with failure if lease is not immediately obtained" \
"\n -q Quit after obtaining lease" \