summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-26 18:25:24 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-26 18:25:24 +0000
commit06aed4316e1f486f78c6487181c75cb22a70c639 (patch)
tree65a21a2b40b877b985bfe746df01358546cbf878 /include
parent04bb2d2d06a87b08743ee997fcd8465bfed809d1 (diff)
downloadbusybox-w32-06aed4316e1f486f78c6487181c75cb22a70c639.tar.gz
busybox-w32-06aed4316e1f486f78c6487181c75cb22a70c639.tar.bz2
busybox-w32-06aed4316e1f486f78c6487181c75cb22a70c639.zip
ifenslave: new applet. closes bug 115.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h26
2 files changed, 27 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index cdb19958c..b2e89ee85 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -186,6 +186,7 @@ USE_HWCLOCK(APPLET(hwclock, _BB_DIR_SBIN, _BB_SUID_NEVER))
186USE_ID(APPLET(id, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 186USE_ID(APPLET(id, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
187USE_IFCONFIG(APPLET(ifconfig, _BB_DIR_SBIN, _BB_SUID_NEVER)) 187USE_IFCONFIG(APPLET(ifconfig, _BB_DIR_SBIN, _BB_SUID_NEVER))
188USE_IFUPDOWN(APPLET_ODDNAME(ifdown, ifupdown, _BB_DIR_SBIN, _BB_SUID_NEVER, ifdown)) 188USE_IFUPDOWN(APPLET_ODDNAME(ifdown, ifupdown, _BB_DIR_SBIN, _BB_SUID_NEVER, ifdown))
189USE_IFENSLAVE(APPLET(ifenslave, _BB_DIR_SBIN, _BB_SUID_NEVER))
189USE_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, _BB_DIR_SBIN, _BB_SUID_NEVER, ifup)) 190USE_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, _BB_DIR_SBIN, _BB_SUID_NEVER, ifup))
190USE_INETD(APPLET(inetd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) 191USE_INETD(APPLET(inetd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
191USE_INIT(APPLET(init, _BB_DIR_SBIN, _BB_SUID_NEVER)) 192USE_INIT(APPLET(init, _BB_DIR_SBIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index 359f88d27..3ef421197 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1563,6 +1563,32 @@ USE_FEATURE_BRCTL_FANCY("\n" \
1563 " [mem_start NN] [io_addr NN] [irq NN]\n") \ 1563 " [mem_start NN] [io_addr NN] [irq NN]\n") \
1564 " [up|down] ..." 1564 " [up|down] ..."
1565 1565
1566#define ifenslave_trivial_usage \
1567 "[-cdf] master-iface <slave-iface...>"
1568#define ifenslave_full_usage \
1569 "Configure network interfaces for parallel routing\n\n" \
1570 "Options:" \
1571 "\n -c, --change-active Change active slave" \
1572 "\n -d, --detach Remove slave interface from bonding device" \
1573 "\n -f, --force Force, even if interface is not Ethernet" \
1574/* "\n -r, --receive-slave Create a receive-only slave" */
1575#define ifenslave_example_usage \
1576 "To create a bond device, simply follow these three steps :\n" \
1577 "- ensure that the required drivers are properly loaded :\n" \
1578 " # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \
1579 "- assign an IP address to the bond device :\n" \
1580 " # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \
1581 "- attach all the interfaces you need to the bond device :\n" \
1582 " # ifenslave bond0 eth0 eth1 eth2\n" \
1583 " If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \
1584 " interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \
1585 " To detach a dead interface without setting the bond device down :\n" \
1586 " # ifenslave -d bond0 eth1\n\n" \
1587 " To set the bond device down and automatically release all the slaves :\n" \
1588 " # ifconfig bond0 down\n\n" \
1589 " To change active slave :\n" \
1590 " # ifenslave -c bond0 eth0\n"
1591
1566#define ifup_trivial_usage \ 1592#define ifup_trivial_usage \
1567 "[-ahinv] ifaces..." 1593 "[-ahinv] ifaces..."
1568#define ifup_full_usage \ 1594#define ifup_full_usage \