New package: runit-iptables-20180618 (#158)

This commit is contained in:
Nicolas Porcel 2018-08-17 11:19:08 +02:00 committed by cr6git
parent 3ee8d6d34f
commit 7723437cb3
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,7 @@
if [ -e /etc/iptables/iptables.rules ]; then
iptables-restore /etc/iptables/iptables.rules
fi
if [ -e /etc/iptables/ip6tables.rules ]; then
ip6tables-restore /etc/iptables/ip6tables.rules
fi

View file

@ -0,0 +1,14 @@
# Template file for 'runit-iptables'
pkgname=runit-iptables
version=20180616
revision=1
noarch=yes
depends="runit-void iptables"
short_desc="Restore iptables rules on boot"
maintainer="Nicolas Porcel <nicolasporcel06@gmail.com>"
license="Public Domain"
homepage="http://www.voidlinux.org/"
do_install() {
vinstall ${FILESDIR}/91-iptables.sh 0644 etc/runit/core-services
}