summaryrefslogtreecommitdiff
path: root/src/validators/numeric-exclude
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-15 12:47:49 +0100
committerGitHub <noreply@github.com>2023-11-15 12:47:49 +0100
commit5ea97243eb50c48520b8210e47c161637691a365 (patch)
treea1c59e3c1f377c77f6dd6c75c2b7da1187f01ec8 /src/validators/numeric-exclude
parentfa92cbea9ab4802554da8b02814626b6510260d2 (diff)
parent9e053268355f16b9aba6a551febc1e8902cf20c9 (diff)
downloadvyos-1x-5ea97243eb50c48520b8210e47c161637691a365.tar.gz
vyos-1x-5ea97243eb50c48520b8210e47c161637691a365.zip
Merge pull request #2478 from nicolas-fort/T5729-Sagitta
T5729: firewall: multiple backports
Diffstat (limited to 'src/validators/numeric-exclude')
-rwxr-xr-xsrc/validators/numeric-exclude8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/validators/numeric-exclude b/src/validators/numeric-exclude
new file mode 100755
index 000000000..d693ad16d
--- /dev/null
+++ b/src/validators/numeric-exclude
@@ -0,0 +1,8 @@
+#!/bin/sh
+path=$(dirname "$0")
+num="${@: -1}"
+if [ "${num:0:1}" != "!" ]; then
+ ${path}/numeric $@
+else
+ ${path}/numeric ${@:1:$#-1} ${num:1}
+fi \ No newline at end of file