diff --git a/Shorewall/firewall b/Shorewall/firewall index 4ba763b21..3dc743932 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -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 ;; diff --git a/Shorewall/shorewall b/Shorewall/shorewall index d990b3e7b..5e004f5f8 100755 --- a/Shorewall/shorewall +++ b/Shorewall/shorewall @@ -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 ;;