summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorajs124_desk <ajs@online.de>2014-03-01 21:42:52 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2014-03-01 22:17:13 +0100
commit23ae1791917d48da7237d918f19dfa55a6a13d8f (patch)
tree64348c1c6992705730c32d104b0064169d781155 /src
parent965c476fd5cd10885a7708f0c111c51e697d6694 (diff)
downloadnetctl-23ae1791917d48da7237d918f19dfa55a6a13d8f.tar.gz
netctl-23ae1791917d48da7237d918f19dfa55a6a13d8f.tar.xz
port bonding from ifenslave to iproute2
Ifenslave is deprecated according to the kernel documentation: https://www.kernel.org/doc/Documentation/networking/bonding.txt It also added an additional, unnecessary dependency. I tried to update the documentation to reflect this change.
Diffstat (limited to 'src')
-rw-r--r--src/lib/connections/bond8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/connections/bond b/src/lib/connections/bond
index 9cc8b96..2909b90 100644
--- a/src/lib/connections/bond
+++ b/src/lib/connections/bond
@@ -1,8 +1,7 @@
-# Contributed by: Byron Williams <byron@112percent.com>
+# Contributed by: andy123 <ajs@online.de>
. "$SUBR_DIR/ip"
-: ${IFENSLAVE:=ifenslave}
declare -ag BindsToInterfaces
bond_up() {
@@ -15,8 +14,7 @@ bond_up() {
bring_interface_up "$Interface"
for slave in "${BindsToInterfaces[@]}"; do
- bring_interface_up "$slave"
- $IFENSLAVE "$Interface" "$slave"
+ ip link set dev "$slave" master "$Interface"
done
ip_set
@@ -24,7 +22,7 @@ bond_up() {
bond_down() {
for slave in "${BindsToInterfaces[@]}"; do
- $IFENSLAVE "$Interface" -d "$slave"
+ ip link set dev "$slave" nomaster
done
ip_unset