1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-15 03:43:53 +02:00
openwrt-packages/net/bonding/Makefile
Jo-Philipp Wich 1a169546f2 bonding: accept list of slaves in uci list notation
Rework the bonding.sh protocol handler to accept slave interface names
encoded in uci list notation. Also replace ifconfig up/down with ip
link calls while we're at it.

Fixes: #11455
Fixes: https://github.com/openwrt/luci/issues/4473
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 57a77386de)
2021-04-13 09:44:33 +02:00

43 lines
933 B
Makefile

#
# Copyright (C) 2018 TDT AG <development@tdt.de>
#
# This is free software, licensed under the GNU General Public License v2.
# See https://www.gnu.org/licenses/gpl-2.0.txt for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=proto-bonding
PKG_VERSION:=2021-04-09
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Helge Mader <ma@dev.tdt.de>
include $(INCLUDE_DIR)/package.mk
define Package/proto-bonding
SECTION:=net
CATEGORY:=Network
TITLE:=Link Aggregation (Channel Bonding) proto handler
DEPENDS:=+kmod-bonding
PKGARCH:=all
endef
define Package/proto-bonding/description
This package contains the channel bonding proto handler for netifd
endef
define Build/Compile
endef
define Package/proto-bonding/install
$(INSTALL_DIR) $(1)/lib/netifd/proto/
$(INSTALL_BIN) ./files/lib/netifd/proto/bonding.sh \
$(1)/lib/netifd/proto/
endef
$(eval $(call BuildPackage,proto-bonding))