summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Champetier2022-01-26 19:23:23 +0000
committerHauke Mehrtens2022-02-02 23:02:31 +0000
commit0e32c6baf37688e8cefed5718afe13ec18f75233 (patch)
tree6fc101b7c6c48287fabe3d64d964347efcfe844f
parent3a5df36cf694ca821ad5486ff360969bd3492aaa (diff)
downloadopenwrt-0e32c6baf37688e8cefed5718afe13ec18f75233.tar.gz
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@gmail.com>
-rw-r--r--package/network/utils/iptables/Makefile2
1 files changed, 2 insertions, 0 deletions
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