Add undocumented 'call' commands to /sbin/shorewall and /usr/share/shorewall/firewall

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@635 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-07-05 17:55:43 +00:00
parent 17a7a0492d
commit 678e23918b
2 changed files with 18 additions and 0 deletions

View File

@ -4572,6 +4572,7 @@ do_initialize() {
FUNCTIONS=$SHARED_DIR/functions
if [ -f $FUNCTIONS ]; then
echo "Loading $FUNCTIONS..."
. $FUNCTIONS
else
startup_error "$FUNCTIONS does not exist!"
@ -4868,6 +4869,14 @@ case "$command" in
my_mutex_off
;;
call)
#
# Undocumented way to call functions in /usr/share/shorewall/firewall directly
#
shift;
do_initialize
$@
;;
*)
usage
;;

View File

@ -897,6 +897,15 @@ case "$1" in
temp=`broadcastaddress $address`; echo " BROADCAST=$temp"
;;
call)
#
# Undocumented way to call functions in /usr/share/shorewall/functions directly
#
shift;
get_config
. /usr/share/shorewall/functions
$@
;;
*)
usage 1
;;