Browse Source

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 <vg.aetera@gmail.com>
lilik-openwrt-22.03
Vladislav Grigoryev 3 years ago
parent
commit
4f4722e36f
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      net/bonding/Makefile
  2. +2
    -2
      net/bonding/files/lib/netifd/proto/bonding.sh

+ 1
- 1
net/bonding/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=proto-bonding PKG_NAME:=proto-bonding
PKG_VERSION:=2021-04-09 PKG_VERSION:=2021-04-09
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:= PKG_LICENSE_FILES:=


+ 2
- 2
net/bonding/files/lib/netifd/proto/bonding.sh View File

@ -90,7 +90,7 @@ proto_bonding_add_slave() {
proto_bonding_setup() { proto_bonding_setup() {
local cfg="$1" local cfg="$1"
local link="bonding-$cfg"
local link="bond-$cfg"
# Check for loaded kernel bonding driver (/sys/class/net/bonding_masters exists) # Check for loaded kernel bonding driver (/sys/class/net/bonding_masters exists)
[ -f "$BONDING_MASTERS" ] || { [ -f "$BONDING_MASTERS" ] || {
@ -208,7 +208,7 @@ proto_bonding_setup() {
proto_bonding_teardown() { proto_bonding_teardown() {
local cfg="$1" local cfg="$1"
local link="bonding-$cfg"
local link="bond-$cfg"
# Check for loaded kernel bonding driver (/sys/class/net/bonding_masters exists) # Check for loaded kernel bonding driver (/sys/class/net/bonding_masters exists)
[ -f "$BONDING_MASTERS" ] || { [ -f "$BONDING_MASTERS" ] || {


Loading…
Cancel
Save