2012-05-27 11:47:05 +02:00
|
|
|
#!/bin/bash
|
2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2007-02-22 23:46:50 +01:00
|
|
|
{
|
2012-05-27 11:47:05 +02:00
|
|
|
add_checked_modules '/net/ipv6' '/net/ipv4' '/net/netfilter' '/net/bridge/'
|
|
|
|
apps="/usr/sbin/ip6tables /usr/sbin/ip6tables-restore /usr/sbin/ip6tables-save /usr/sbin/iptables /usr/sbin/iptables-restore /usr/sbin/iptables-save /usr/bin/iptables-xml"
|
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
|
|
|
done
|
2007-02-22 23:46:50 +01:00
|
|
|
add_file "/etc/rc.d/iptables"
|
|
|
|
add_file "/etc/rc.d/ip6tables"
|
2008-12-06 19:12:19 +01:00
|
|
|
add_file "/usr/share/archboot/iptables/etc/conf.d/iptables" "/etc/conf.d/iptables"
|
|
|
|
add_file "/usr/share/archboot/iptables/etc/iptables/empty.rules" "/etc/iptables/empty.rules"
|
|
|
|
add_file "/usr/share/archboot/iptables/etc/iptables/simple_firewall.rules" "/etc/iptables/simple_firewall.rules"
|
2007-02-22 23:46:50 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes iptables on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|