From 1848c3fa458cf883071953130b81f47504ec06b6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 30 Oct 2015 08:47:01 -0700 Subject: [PATCH] Add lib.cli-user support to the -lite products Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 76ea839b6..11b221347 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -3496,9 +3496,12 @@ noiptrace_command() { fi } # -# Set the configuration variables from shorewall-lite.conf +# Set the configuration variables from shorewall[6]-lite.conf. +# This function is overloaded by lib.cli-std in the full products # get_config() { + local config + local lib ensure_config_path @@ -3636,6 +3639,10 @@ get_config() { g_loopback=$(find_loopback_interfaces) + lib=$(find_file lib.cli-user) + + [ -f $lib ] && . $lib + } #