forked from extern/shorewall_code
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:
parent
17a7a0492d
commit
678e23918b
@ -4572,6 +4572,7 @@ do_initialize() {
|
|||||||
FUNCTIONS=$SHARED_DIR/functions
|
FUNCTIONS=$SHARED_DIR/functions
|
||||||
|
|
||||||
if [ -f $FUNCTIONS ]; then
|
if [ -f $FUNCTIONS ]; then
|
||||||
|
echo "Loading $FUNCTIONS..."
|
||||||
. $FUNCTIONS
|
. $FUNCTIONS
|
||||||
else
|
else
|
||||||
startup_error "$FUNCTIONS does not exist!"
|
startup_error "$FUNCTIONS does not exist!"
|
||||||
@ -4868,6 +4869,14 @@ case "$command" in
|
|||||||
my_mutex_off
|
my_mutex_off
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
call)
|
||||||
|
#
|
||||||
|
# Undocumented way to call functions in /usr/share/shorewall/firewall directly
|
||||||
|
#
|
||||||
|
shift;
|
||||||
|
do_initialize
|
||||||
|
$@
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
@ -897,6 +897,15 @@ case "$1" in
|
|||||||
temp=`broadcastaddress $address`; echo " BROADCAST=$temp"
|
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
|
usage 1
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user