diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-21 10:27:58 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-08-21 10:27:58 +0000 |
commit | 8eb0dc1d101029620f7ca75a77f04b091b61a212 (patch) | |
tree | f5d9e4a1426f423be6220a7d722792d70cd00c1d /include | |
parent | 3d184586a7a101ccbc5de228b61d78a490315f8a (diff) | |
download | busybox-w32-8eb0dc1d101029620f7ca75a77f04b091b61a212.tar.gz busybox-w32-8eb0dc1d101029620f7ca75a77f04b091b61a212.tar.bz2 busybox-w32-8eb0dc1d101029620f7ca75a77f04b091b61a212.zip |
New applet, udhcp client
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 14 |
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 @@ | |||
479 | #ifdef CONFIG_TTY | 479 | #ifdef CONFIG_TTY |
480 | APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 480 | APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
481 | #endif | 481 | #endif |
482 | #ifdef CONFIG_UDHCPC | ||
483 | APPLET(udhcpc, udhcpc_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
484 | #endif | ||
482 | #ifdef CONFIG_UMOUNT | 485 | #ifdef CONFIG_UMOUNT |
483 | APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 486 | APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
484 | #endif | 487 | #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 @@ | |||
1905 | "$ tty\n" \ | 1905 | "$ tty\n" \ |
1906 | "/dev/tty2\n" | 1906 | "/dev/tty2\n" |
1907 | 1907 | ||
1908 | #define udhcpc_trivial_usage \ | ||
1909 | "[-fqv] [-c CLIENTID] [-H HOSTNAME] [-i INTERFACE]\n\[-p file] [-r IP] [-s script]" | ||
1910 | #define udhcpc_full_usage \ | ||
1911 | "\t-c,\t--clientid=CLIENTID\tClient identifier\n" \ | ||
1912 | "\t-H,\t--hostname=HOSTNAME\tClient hostname\n" \ | ||
1913 | "\t-f,\t--foreground\tDo not fork after getting lease\n" \ | ||
1914 | "\t-i,\t--interface=INTERFACE\tInterface to use (default: eth0)\n" \ | ||
1915 | "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated.\n" \ | ||
1916 | "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \ | ||
1917 | "\t-q,\t--quit\tQuit after obtaining lease\n" \ | ||
1918 | "\t-r,\t--request=IP\tIP address to request (default: none)\n" \ | ||
1919 | "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ | ||
1920 | "\t-v,\t--version\tDisplay version" | ||
1921 | |||
1908 | #ifdef CONFIG_FEATURE_MOUNT_FORCE | 1922 | #ifdef CONFIG_FEATURE_MOUNT_FORCE |
1909 | #define USAGE_MOUNT_FORCE(a) a | 1923 | #define USAGE_MOUNT_FORCE(a) a |
1910 | #else | 1924 | #else |