ports/main/nnd-s6-services/rc/nftables/up

15 lines
245 B
Plaintext

#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/nftables
importas -i RULESET RULESET
importas -i RULEDIR RULEDIR
emptyenv
export PATH $PATH
fdclose 1
fdclose 2
exec nft -I $RULEDIR -f $RULESET