archboot/usr/lib/initcpio/install/arch_iptables
2012-05-27 11:47:05 +02:00

24 lines
850 B
Bash

#!/bin/bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
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
add_file "/etc/rc.d/iptables"
add_file "/etc/rc.d/ip6tables"
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"
}
help ()
{
cat<<HELPEOF
This hook includes iptables on an arch boot image.
HELPEOF
}