arptables: add runit service
This commit is contained in:
5
srcpkgs/arptables/files/arptables/finish
Executable file
5
srcpkgs/arptables/files/arptables/finish
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
RULES=/etc/iptables/arptables.rules
|
||||||
|
[ -r conf ] && . ./conf
|
||||||
|
[ -n $SKIP_SAVE ] && exit 0
|
||||||
|
arptables-save > $RULES
|
||||||
6
srcpkgs/arptables/files/arptables/run
Executable file
6
srcpkgs/arptables/files/arptables/run
Executable 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
|
||||||
@@ -17,4 +17,5 @@ do_install() {
|
|||||||
vbin arptables-restore
|
vbin arptables-restore
|
||||||
vbin arptables-save
|
vbin arptables-save
|
||||||
vman arptables.8
|
vman arptables.8
|
||||||
|
vsv arptables
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user