summaryrefslogtreecommitdiffstats
path: root/rules/nftables.in
diff options
context:
space:
mode:
authorBaeuerle, Florian <Florian.Baeuerle@allegion.com>2019-04-03 14:12:04 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-04-05 16:29:40 +0200
commit85758bda0d61ab6a103efa27427df14471be0713 (patch)
tree297f888a03d962719ca4d1ce20ef5b80470c11fc /rules/nftables.in
parentb8202ddcf19a197b2f96a8f2cd6ffb843b98811c (diff)
downloadptxdist-85758bda0d61ab6a103efa27427df14471be0713.tar.gz
ptxdist-85758bda0d61ab6a103efa27427df14471be0713.tar.xz
nftables: add option for installing systemd unit
Allow installing a systemd unit for loading the nftables configuration file. The systemd unit is taken from Arch Linux. Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com> Acked-by: Alexander Dahl <post@lespocky.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/nftables.in')
-rw-r--r--rules/nftables.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules/nftables.in b/rules/nftables.in
index aafd7cdd6..089f68d2e 100644
--- a/rules/nftables.in
+++ b/rules/nftables.in
@@ -36,4 +36,10 @@ config NFTABLES_STARTSCRIPT
bool
prompt "install /etc/init.d/nftables"
+config NFTABLES_SYSTEMD_UNIT
+ bool
+ default y
+ depends on INITMETHOD_SYSTEMD
+ prompt "install systemd unit file for nftables"
+
endif