From 03511ce7d6cad7bee51a7f4be14a99ba141ca6a9 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 16 Sep 2015 23:05:06 +0200 Subject: [PATCH] firewall: add possibility to load an additionnal rules file: firewall.local if exists. --- firewall | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firewall b/firewall index 1fc1150..79f6546 100755 --- a/firewall +++ b/firewall @@ -366,6 +366,12 @@ case "${1}" in fi done + # If exist, load local rules file + if [ -f "${0}.local" ]; then + printf '%b' "Load local rules file\n" + ${0}.local + fi + fw_log ;; stop)