From 2ae3de0848dee0f3da28727fc30e2beeecd412e1 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Wed, 27 Sep 2023 17:41:14 +0000 Subject: T5616: firewall: add option to be able to match firewall marks in firewall filter and in policy route. --- src/validators/numeric-exclude | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/validators/numeric-exclude (limited to 'src') diff --git a/src/validators/numeric-exclude b/src/validators/numeric-exclude new file mode 100644 index 000000000..676a240b6 --- /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 -- cgit v1.2.3