arptables: add runit service

This commit is contained in:
beefcurtains 2015-05-31 03:31:37 +00:00
parent 4ec6f5cc0b
commit 5506df67f4
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
RULES=/etc/iptables/arptables.rules
[ -r conf ] && . ./conf
[ -n $SKIP_SAVE ] && exit 0
arptables-save > $RULES

View File

@ -0,0 +1,6 @@
#!/bin/sh
RULES=/etc/iptables/arptables.rules
[ -r conf ] && . ./conf
[ -r $RULES ] || exit 0
arptables-restore < $RULES
exec chpst -b arptables pause

View File

@ -17,4 +17,5 @@ do_install() {
vbin arptables-restore
vbin arptables-save
vman arptables.8
vsv arptables
}