summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 21:52:20 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-02 16:33:05 +0000
commit33b031cc9005e51129719ff42d70bf50fb7f14e1 (patch)
treeb6ca67716ab8e6716f56d42557adc5b55a92cd80
parent9ff1172aedc2d98c1050851ebea248f056cc2a1d (diff)
downloadvyos-1x-33b031cc9005e51129719ff42d70bf50fb7f14e1.tar.gz
vyos-1x-33b031cc9005e51129719ff42d70bf50fb7f14e1.zip
init: T3355: always use full nft command name (e.g. --file over -f)
(cherry picked from commit 0529371bc587e2fcdd8794061e9bb9d60c792c43)
-rwxr-xr-xsrc/init/vyos-router2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router
index 912a9ef3b..c2cb9169f 100755
--- a/src/init/vyos-router
+++ b/src/init/vyos-router
@@ -367,7 +367,7 @@ start ()
nfct helper add rpc inet6 tcp
nfct helper add rpc inet6 udp
nfct helper add tns inet6 tcp
- nft -f /usr/share/vyos/vyos-firewall-init.conf || log_failure_msg "could not initiate firewall rules"
+ nft --file /usr/share/vyos/vyos-firewall-init.conf || log_failure_msg "could not initiate firewall rules"
# As VyOS does not execute commands that are not present in the CLI we call
# the script by hand to have a single source for the login banner and MOTD