diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-09 12:34:15 +0300 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-09 12:34:15 +0300 |
commit | 021fa7db9139bff3b4bf404dfd7d2b1541ed71f8 (patch) | |
tree | 0ed0d25ba27e8014d49a2dc82c44c0ff9f21edf8 /include | |
parent | 7ab93d99802852093b08466f8b085980a3b205bf (diff) |
debian compatable ifup and ifdown commands
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 6 | ||||
-rw-r--r-- | include/usage.h | 28 |
2 files changed, 34 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index e41a48996..2de9c9909 100644 --- a/include/applets.h +++ b/include/applets.h @@ -239,6 +239,12 @@ #ifdef CONFIG_IFCONFIG APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_IFUPDOWN + APPLET(ifdown, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif +#ifdef CONFIG_IFUPDOWN + APPLET(ifup, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_INIT APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index 1d22806f1..2d20722a9 100644 --- a/include/usage.h +++ b/include/usage.h @@ -807,6 +807,34 @@ USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ "\t[up|down] ..." +#define ifup_trivial_usage \ + "<-ahinv> <ifaces...>" +#define ifup_full_usage \ + "Usage: ifup <options> <ifaces...>\n\n" \ + "Options:\n" \ + "\t-h, --help\t\tthis help\n" \ + "\t-a, --all\t\tde/configure all interfaces automatically\n" \ + "\t-i, --interfaces FILE\tuse FILE for interface definitions\n" \ + "\t-n, --no-act\t\tprint out what would happen, but don't do it\n" \ + "\t\t\t\t(note that this option doesn't disable mappings)\n" \ + "\t-v, --verbose\t\tprint out what would happen before doing it\n" \ + "\t--no-mappings\t\tdon't run any mappings\n" \ + "\t--force\t\t\tforce de/configuration\n" + +#define ifdown_trivial_usage \ + "<-ahinv> <ifaces...>" +#define ifdown_full_usage \ + "Usage: ifdown <options> <ifaces...>\n\n" \ + "Options:\n" \ + "\t-h, --help\t\tthis help\n" \ + "\t-a, --all\t\tde/configure all interfaces automatically\n" \ + "\t-i, --interfaces FILE\tuse FILE for interface definitions\n" \ + "\t-n, --no-act\t\tprint out what would happen, but don't do it\n" \ + "\t\t\t\t(note that this option doesn't disable mappings)\n" \ + "\t-v, --verbose\t\tprint out what would happen before doing it\n" \ + "\t--no-mappings\t\tdon't run any mappings\n" \ + "\t--force\t\t\tforce de/configuration\n" + #define init_trivial_usage \ "" #define init_full_usage \ |