bonding: use shorter interface prefix 16408/head
authorVladislav Grigoryev <vg.aetera@gmail.com>
Fri, 20 Aug 2021 04:07:47 +0000 (07:07 +0300)
committerVladislav Grigoryev <vg.aetera@gmail.com>
Mon, 23 Aug 2021 21:17:15 +0000 (00:17 +0300)
Change the interface protocol prefix from "bonding-" to "bond-".
This allows longer custom interface names and useful for VLANs.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
net/bonding/Makefile
net/bonding/files/lib/netifd/proto/bonding.sh

index d9bafe21c8e8bcfa7064f6a5a3dd315181d47313..e511ba0ec40c59b885bd3ad38649f49e254b42cd 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=proto-bonding
 PKG_VERSION:=2021-04-09
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_LICENSE:=GPL-2.0
 PKG_LICENSE_FILES:=
index 04cec109ce9534115f502c6e4aa77ceb95a02d9f..43a1f77c578694c1cfa6aec3a8a6aaad30c745d7 100755 (executable)
@@ -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" ] || {