diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-09 09:34:15 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-09 09:34:15 +0000 |
| commit | 021fa7db9139bff3b4bf404dfd7d2b1541ed71f8 (patch) | |
| tree | 0ed0d25ba27e8014d49a2dc82c44c0ff9f21edf8 /include | |
| parent | 7ab93d99802852093b08466f8b085980a3b205bf (diff) | |
| download | busybox-w32-021fa7db9139bff3b4bf404dfd7d2b1541ed71f8.tar.gz busybox-w32-021fa7db9139bff3b4bf404dfd7d2b1541ed71f8.tar.bz2 busybox-w32-021fa7db9139bff3b4bf404dfd7d2b1541ed71f8.zip | |
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 @@ | |||
| 239 | #ifdef CONFIG_IFCONFIG | 239 | #ifdef CONFIG_IFCONFIG |
| 240 | APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 240 | APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
| 241 | #endif | 241 | #endif |
| 242 | #ifdef CONFIG_IFUPDOWN | ||
| 243 | APPLET(ifdown, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 244 | #endif | ||
| 245 | #ifdef CONFIG_IFUPDOWN | ||
| 246 | APPLET(ifup, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | ||
| 247 | #endif | ||
| 242 | #ifdef CONFIG_INIT | 248 | #ifdef CONFIG_INIT |
| 243 | APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER) | 249 | APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER) |
| 244 | #endif | 250 | #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 @@ | |||
| 807 | USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ | 807 | USAGE_IFCONFIG_MII("\t[mem_start <NN>] [io_addr <NN>] [irq <NN>]\n") \ |
| 808 | "\t[up|down] ..." | 808 | "\t[up|down] ..." |
| 809 | 809 | ||
| 810 | #define ifup_trivial_usage \ | ||
| 811 | "<-ahinv> <ifaces...>" | ||
| 812 | #define ifup_full_usage \ | ||
| 813 | "Usage: ifup <options> <ifaces...>\n\n" \ | ||
| 814 | "Options:\n" \ | ||
| 815 | "\t-h, --help\t\tthis help\n" \ | ||
| 816 | "\t-a, --all\t\tde/configure all interfaces automatically\n" \ | ||
| 817 | "\t-i, --interfaces FILE\tuse FILE for interface definitions\n" \ | ||
| 818 | "\t-n, --no-act\t\tprint out what would happen, but don't do it\n" \ | ||
| 819 | "\t\t\t\t(note that this option doesn't disable mappings)\n" \ | ||
| 820 | "\t-v, --verbose\t\tprint out what would happen before doing it\n" \ | ||
| 821 | "\t--no-mappings\t\tdon't run any mappings\n" \ | ||
| 822 | "\t--force\t\t\tforce de/configuration\n" | ||
| 823 | |||
| 824 | #define ifdown_trivial_usage \ | ||
| 825 | "<-ahinv> <ifaces...>" | ||
| 826 | #define ifdown_full_usage \ | ||
| 827 | "Usage: ifdown <options> <ifaces...>\n\n" \ | ||
| 828 | "Options:\n" \ | ||
| 829 | "\t-h, --help\t\tthis help\n" \ | ||
| 830 | "\t-a, --all\t\tde/configure all interfaces automatically\n" \ | ||
| 831 | "\t-i, --interfaces FILE\tuse FILE for interface definitions\n" \ | ||
| 832 | "\t-n, --no-act\t\tprint out what would happen, but don't do it\n" \ | ||
| 833 | "\t\t\t\t(note that this option doesn't disable mappings)\n" \ | ||
| 834 | "\t-v, --verbose\t\tprint out what would happen before doing it\n" \ | ||
| 835 | "\t--no-mappings\t\tdon't run any mappings\n" \ | ||
| 836 | "\t--force\t\t\tforce de/configuration\n" | ||
| 837 | |||
| 810 | #define init_trivial_usage \ | 838 | #define init_trivial_usage \ |
| 811 | "" | 839 | "" |
| 812 | #define init_full_usage \ | 840 | #define init_full_usage \ |
