diff --git a/srcpkgs/arptables/files/arptables/finish b/srcpkgs/arptables/files/arptables/finish new file mode 100755 index 0000000000..5c5d5361f8 --- /dev/null +++ b/srcpkgs/arptables/files/arptables/finish @@ -0,0 +1,5 @@ +#!/bin/sh +RULES=/etc/iptables/arptables.rules +[ -r conf ] && . ./conf +[ -n $SKIP_SAVE ] && exit 0 +arptables-save > $RULES diff --git a/srcpkgs/arptables/files/arptables/run b/srcpkgs/arptables/files/arptables/run new file mode 100755 index 0000000000..cf92801f9e --- /dev/null +++ b/srcpkgs/arptables/files/arptables/run @@ -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 diff --git a/srcpkgs/arptables/template b/srcpkgs/arptables/template index 58c367f86d..6f7a04137f 100644 --- a/srcpkgs/arptables/template +++ b/srcpkgs/arptables/template @@ -17,4 +17,5 @@ do_install() { vbin arptables-restore vbin arptables-save vman arptables.8 + vsv arptables }