mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +01:00
Implement 'call' in the compiled script
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
267637f139
commit
e3805b0ada
@ -22,6 +22,7 @@ usage() {
|
|||||||
echo " status"
|
echo " status"
|
||||||
echo " up <interface>"
|
echo " up <interface>"
|
||||||
echo " savesets <file>"
|
echo " savesets <file>"
|
||||||
|
echo " call <function> [ <parameter> ... ]"
|
||||||
echo " version"
|
echo " version"
|
||||||
echo
|
echo
|
||||||
echo "Options are:"
|
echo "Options are:"
|
||||||
@ -426,6 +427,14 @@ case "$COMMAND" in
|
|||||||
usage 2
|
usage 2
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
call)
|
||||||
|
#
|
||||||
|
# Undocumented way to call functions in the libraries directly
|
||||||
|
#
|
||||||
|
detect_configuration
|
||||||
|
shift
|
||||||
|
$@
|
||||||
|
;;
|
||||||
version)
|
version)
|
||||||
[ $# -ne 1 ] && usage 2
|
[ $# -ne 1 ] && usage 2
|
||||||
echo $SHOREWALL_VERSION
|
echo $SHOREWALL_VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user