Signed-off-by: Matt Darfeuille <[email protected]>
---
Shorewall/lib.cli-std | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std
index 8bbe80e3d..420a47c07 100644
--- a/Shorewall/lib.cli-std
+++ b/Shorewall/lib.cli-std
@@ -1367,6 +1367,8 @@ remote_reload_command() # $* = original arguments less
the command.
local system
local getcaps
getcaps=
+ local getcaps_only
+ getcaps_only=
local root
root=root
local libexec
@@ -1401,6 +1403,10 @@ remote_reload_command() # $* = original arguments less
the command.
getcaps=Yes
option=${option#c}
;;
+ C*)
+ getcaps_only=Yes
+ option=${option#C}
+ ;;
r)
[ $# -gt 1 ] || fatal_error "Missing Root User name"
root=$2
@@ -1488,7 +1494,7 @@ remote_reload_command() # $* = original arguments less
the command.
[ -f $capabilities ] || getcaps=Yes
fi
- if [ -n "$getcaps" ]; then
+ if [ -n "$getcaps" -o -n "$getcaps_only" ]; then
[ -n "$DONT_LOAD" ] && DONT_LOAD="$(echo $DONT_LOAD | tr ',' ' ')"
progress_message "Getting Capabilities on system $system..."
@@ -1501,6 +1507,8 @@ remote_reload_command() # $* = original arguments less
the command.
fi
fi
+ [ -n "$getcaps_only" ] && return 0
+
file=$(resolve_file $g_shorewalldir/firewall)
program=$sbindir/${PRODUCT}-lite
--
2.16.2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel