diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index a9f93cc49..e8bcb0e4b 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -254,6 +254,9 @@ | |||
254 | #ifdef CONFIG_IP | 254 | #ifdef CONFIG_IP |
255 | APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 255 | APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
256 | #endif | 256 | #endif |
257 | #ifdef CONFIG_IPCALC | ||
258 | APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER) | ||
259 | #endif | ||
257 | #ifdef CONFIG_KILL | 260 | #ifdef CONFIG_KILL |
258 | APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 261 | APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
259 | #endif | 262 | #endif |
diff --git a/include/usage.h b/include/usage.h index c140a88ba..b741360cf 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -982,6 +982,36 @@ | |||
982 | #define ip_full_usage \ | 982 | #define ip_full_usage \ |
983 | "not written yet" | 983 | "not written yet" |
984 | 984 | ||
985 | #ifndef CONFIG_FEATURE_IPCALC_FANCY | ||
986 | #define ipcalc_trivial_usage \ | ||
987 | "[--broadcast] [--netmask] [--network] ipaddr <netmask>" | ||
988 | |||
989 | #define ipcalc_full_usage \ | ||
990 | "Calculate IP network settings from a IP address\n\n" \ | ||
991 | "Options:\n" \ | ||
992 | "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \ | ||
993 | "\t-n\t--netmask\tDisplay default netmask for IP.\n" \ | ||
994 | "\t-w\t--network\tDisplay calculated network address." | ||
995 | #else | ||
996 | #define ipcalc_trivial_usage \ | ||
997 | "[OPTION]... ipaddr <netmask>" | ||
998 | |||
999 | #define ipcalc_full_usage \ | ||
1000 | "Calculate IP network settings from a IP address\n\n" \ | ||
1001 | "Options:\n" \ | ||
1002 | "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \ | ||
1003 | "\t-n\t--netmask\tDisplay default netmask for IP.\n" \ | ||
1004 | "\t-w\t--network\tDisplay calculated network address.\n" \ | ||
1005 | "\t-h\t--hostname\tDisplay first resolved host name.\n" \ | ||
1006 | "\t-s\t--silent\tDon't ever display error messages." | ||
1007 | #endif | ||
1008 | |||
1009 | #define ipcalc_notes_usage \ | ||
1010 | "ipcalc provides a simple way to calculate IP information for\n" \ | ||
1011 | "a host. The various options specify what information ipcalc\n" \ | ||
1012 | "should display on standard out. Multiple options may be\n" \ | ||
1013 | "specified.\n" | ||
1014 | |||
985 | #define kill_trivial_usage \ | 1015 | #define kill_trivial_usage \ |
986 | "[-signal] process-id [process-id ...]" | 1016 | "[-signal] process-id [process-id ...]" |
987 | #define kill_full_usage \ | 1017 | #define kill_full_usage \ |