aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h14
2 files changed, 17 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 6b8bce7e0..a1084fcc6 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -479,6 +479,9 @@
#ifdef CONFIG_TTY
APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_UDHCPC
+ APPLET(udhcpc, udhcpc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_UMOUNT
APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index a232c88da..a5ae4c889 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1905,6 +1905,20 @@
"$ tty\n" \
"/dev/tty2\n"
+#define udhcpc_trivial_usage \
+ "[-fqv] [-c CLIENTID] [-H HOSTNAME] [-i INTERFACE]\n\[-p file] [-r IP] [-s script]"
+#define udhcpc_full_usage \
+ "\t-c,\t--clientid=CLIENTID\tClient identifier\n" \
+ "\t-H,\t--hostname=HOSTNAME\tClient hostname\n" \
+ "\t-f,\t--foreground\tDo not fork after getting lease\n" \
+ "\t-i,\t--interface=INTERFACE\tInterface to use (default: eth0)\n" \
+ "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated.\n" \
+ "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \
+ "\t-q,\t--quit\tQuit after obtaining lease\n" \
+ "\t-r,\t--request=IP\tIP address to request (default: none)\n" \
+ "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \
+ "\t-v,\t--version\tDisplay version"
+
#ifdef CONFIG_FEATURE_MOUNT_FORCE
#define USAGE_MOUNT_FORCE(a) a
#else