diff options
-rw-r--r-- | meta/recipes-extended/iptables/iptables_1.8.7.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/iptables/iptables_1.8.7.bb b/meta/recipes-extended/iptables/iptables_1.8.7.bb index 839733aaa8..3b41882841 100644 --- a/meta/recipes-extended/iptables/iptables_1.8.7.bb +++ b/meta/recipes-extended/iptables/iptables_1.8.7.bb | |||
@@ -66,6 +66,11 @@ do_install:append() { | |||
66 | -e 's,@RULESDIR@,${IPTABLES_RULES_DIR},g' \ | 66 | -e 's,@RULESDIR@,${IPTABLES_RULES_DIR},g' \ |
67 | ${D}${systemd_system_unitdir}/ip6tables.service | 67 | ${D}${systemd_system_unitdir}/ip6tables.service |
68 | fi | 68 | fi |
69 | |||
70 | # if libnftnl is included, make the iptables symlink point to the nft-based binary by default | ||
71 | if ${@bb.utils.contains('PACKAGECONFIG', 'libnftnl', 'true', 'false', d)} ; then | ||
72 | ln -sf ${sbindir}/xtables-nft-multi ${D}${sbindir}/iptables | ||
73 | fi | ||
69 | } | 74 | } |
70 | 75 | ||
71 | PACKAGES =+ "${PN}-modules ${PN}-apply" | 76 | PACKAGES =+ "${PN}-modules ${PN}-apply" |