From 4f4722e36f433eb83322238460ee8b72da879fb6 Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Fri, 20 Aug 2021 07:07:47 +0300 Subject: bonding: use shorter interface prefix Change the interface protocol prefix from "bonding-" to "bond-". This allows longer custom interface names and useful for VLANs. Signed-off-by: Vladislav Grigoryev --- net/bonding/files/lib/netifd/proto/bonding.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/bonding/files/lib') diff --git a/net/bonding/files/lib/netifd/proto/bonding.sh b/net/bonding/files/lib/netifd/proto/bonding.sh index 04cec109c..43a1f77c5 100755 --- a/net/bonding/files/lib/netifd/proto/bonding.sh +++ b/net/bonding/files/lib/netifd/proto/bonding.sh @@ -90,7 +90,7 @@ proto_bonding_add_slave() { proto_bonding_setup() { local cfg="$1" - local link="bonding-$cfg" + local link="bond-$cfg" # Check for loaded kernel bonding driver (/sys/class/net/bonding_masters exists) [ -f "$BONDING_MASTERS" ] || { @@ -208,7 +208,7 @@ proto_bonding_setup() { proto_bonding_teardown() { local cfg="$1" - local link="bonding-$cfg" + local link="bond-$cfg" # Check for loaded kernel bonding driver (/sys/class/net/bonding_masters exists) [ -f "$BONDING_MASTERS" ] || { -- cgit v1.2.3