From 61fb48930f45aa536584b2047f9e703186e8f69f Mon Sep 17 00:00:00 2001 From: Russ Dill Date: Mon, 14 Oct 2002 21:41:28 +0000 Subject: added full udhcp integration --- include/applets.h | 8 +++++++- include/usage.h | 20 ++++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 60928aef2..e59342051 100644 --- a/include/applets.h +++ b/include/applets.h @@ -152,6 +152,9 @@ #ifdef CONFIG_DUMPKMAP APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_DUMPLEASES + APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_DUTMP APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) #endif @@ -495,7 +498,10 @@ 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) + APPLET(udhcpc, udhcpc_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) +#endif +#ifdef CONFIG_UDHCPD + APPLET(udhcpd, udhcpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER) #endif #ifdef CONFIG_UMOUNT APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER) diff --git a/include/usage.h b/include/usage.h index 8dd501dde..324341524 100644 --- a/include/usage.h +++ b/include/usage.h @@ -385,6 +385,14 @@ #define dumpkmap_example_usage \ "$ dumpkmap > keymap\n" +#define dumpleases_trivial_usage \ + "[-r|-a] [-f LEASEFILE]" +#define dumpleases_full_usage \ + "Usage: dumpleases -f -[r|a]\n" \ + "\t-f,\t--file=FILENAME\tLeases file to load\n" \ + "\t-r,\t--remaining\tInterepret lease times as time remaing\n" \ + "\t-a,\t--absolute\tInterepret lease times as expire time\n" + #define dutmp_trivial_usage \ "[FILE]" #define dutmp_full_usage \ @@ -1945,12 +1953,14 @@ "/dev/tty2\n" #define udhcpc_trivial_usage \ - "[-fqv] [-c CLIENTID] [-H HOSTNAME] [-i INTERFACE]\n[-p file] [-r IP] [-s script]" + "[-fbnqv] [-c CLIENTID] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]" #define udhcpc_full_usage \ - "\tUsage: udhcpcd [OPTIONS]\n" \ + "\tUsage: udhcpc [OPTIONS]\n" \ "\t-c,\t--clientid=CLIENTID\tClient identifier\n" \ "\t-H,\t--hostname=HOSTNAME\tClient hostname\n" \ + "\t-h,\t \tAlias for -h\n" \ "\t-f,\t--foreground\tDo not fork after getting lease\n" \ + "\t-b,\t--background\tFork to background if lease cannot be immediately negotiated.\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" \ @@ -1959,6 +1969,12 @@ "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ "\t-v,\t--version\tDisplay version" +#define udhcpd_trivial_usage \ + "[configfile]\n" \ + +#define udhcpd_full_usage \ + "\tUsage: udhcpd [configfile]\n" + #ifdef CONFIG_FEATURE_MOUNT_FORCE #define USAGE_MOUNT_FORCE(a) a #else -- cgit v1.2.3