added iptables build

This commit is contained in:
wt
2025-03-24 17:37:47 +07:00
parent f365fbeb8d
commit 5d876267e2
6 changed files with 202 additions and 107 deletions
+2
View File
@@ -18,6 +18,7 @@
. ./scripts/openssl.sh
. ./scripts/hostapd.sh
. ./scripts/dnsmasq.sh
. ./scripts/iptables.sh
#----------- Building rootfs ----------------------
rootfs() {
@@ -62,6 +63,7 @@ rootfs() {
[ "$libnl_enable" = "true" ] && libnl
[ "$iw_enable" = "true" ] && iw
[ "$hostapd_enable" = "true" ] && hostapd
[ "$iptables_enable" = "true" ] && iptables
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init