bridge-utils: Add busybox fixup in postrm 1317/head
authorTed Hess <thess@kitschensync.net>
Thu, 28 May 2015 17:19:25 +0000 (13:19 -0400)
committerTed Hess <thess@kitschensync.net>
Thu, 28 May 2015 17:19:25 +0000 (13:19 -0400)
Signed-off-by: Ted Hess <thess@kitschensync.net>
net/bridge-utils/Makefile

index 5a9cdb8afafd1b6cd8c81e002040fa21a460033b..7b9691cc915098471cb0a418e9e8138945236cf5 100644 (file)
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=bridge-utils
 PKG_VERSION:=1.5
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git
@@ -49,4 +49,11 @@ define Package/bridge/install
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin
 endef
 
+define Package/bridge/prerm
+#!/bin/sh
+$${IPKG_INSTROOT}/bin/busybox brctl -h 2>&1 | grep -q BusyBox && \
+ln -sf ../../bin/busybox $${IPKG_INSTROOT}/usr/sbin/brctl
+exit 0
+endef
+
 $(eval $(call BuildPackage,bridge))