iptables: improve runit services.
If the rules files don't exist just return... this way the runsvdir log is not cluttered with ENOENT messages.
This commit is contained in:
parent
1f91f41929
commit
cf71568af0
3 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
[ ! -e /etc/iptables/ip6tables.rules ] && return 0
|
||||
ip6tables-restore /etc/iptables/ip6tables.rules
|
||||
exec chpst -b ip6tables pause
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
[ ! -e /etc/iptables/iptables.rules ] && return 0
|
||||
iptables-restore /etc/iptables/iptables.rules
|
||||
exec chpst -b iptables pause
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'iptables'
|
||||
pkgname=iptables
|
||||
version=1.4.21
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
build_options="systemd"
|
||||
configure_args="--enable-libipq --enable-shared --enable-devel --enable-bpf-compiler"
|
||||
|
@ -24,7 +24,6 @@ fi
|
|||
pre_build() {
|
||||
rm include/linux/types.h
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# systemd services.
|
||||
if [ "$build_option_systemd" ]; then
|
||||
|
|
Loading…
Reference in a new issue