[openwrt/openwrt] iptables: add ip{, 6}tables-legacy{, -restore, -save} symlinks

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 2 15:14:19 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0e32c6baf37688e8cefed5718afe13ec18f75233

commit 0e32c6baf37688e8cefed5718afe13ec18f75233
Author: Etienne Champetier <champetier.etienne at gmail.com>
AuthorDate: Wed Jan 26 14:23:23 2022 -0500

    iptables: add ip{,6}tables-legacy{,-restore,-save} symlinks
    
    Now that we can have both legacy and nft iptables variants
    installed at the same time, install the legacy symlinks
    
    Signed-off-by: Etienne Champetier <champetier.etienne at gmail.com>
---
 package/network/utils/iptables/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile
index cf87d6de06..e936a57380 100644
--- a/package/network/utils/iptables/Makefile
+++ b/package/network/utils/iptables/Makefile
@@ -614,6 +614,7 @@ endef
 define Package/iptables/install
 	$(INSTALL_DIR) $(1)/usr/sbin
 	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/xtables-legacy-multi $(1)/usr/sbin/
+	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables-legacy{,-restore,-save} $(1)/usr/sbin/
 	$(INSTALL_DIR) $(1)/usr/lib/iptables
 endef
 
@@ -626,6 +627,7 @@ endef
 
 define Package/ip6tables/install
 	$(INSTALL_DIR) $(1)/usr/sbin
+	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables-legacy{,-restore,-save} $(1)/usr/sbin/
 endef
 
 define Package/ip6tables-nft/install



More information about the lede-commits mailing list