arptables: add runit service
This commit is contained in:
parent
4ec6f5cc0b
commit
5506df67f4
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
RULES=/etc/iptables/arptables.rules
|
||||
[ -r conf ] && . ./conf
|
||||
[ -n $SKIP_SAVE ] && exit 0
|
||||
arptables-save > $RULES
|
|
@ -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
|
|
@ -17,4 +17,5 @@ do_install() {
|
|||
vbin arptables-restore
|
||||
vbin arptables-save
|
||||
vman arptables.8
|
||||
vsv arptables
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue