Move open_close_setup() inside open_close_command()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-03-14 09:42:43 -07:00
parent c5ef3fd905
commit 52e7efc666

View File

@ -2086,7 +2086,11 @@ delete_command() {
fi
}
open_close_setup() {
open_close_command() {
local command
local desc
open_close_setup() {
[ -n "$g_nolock" ] || mutex_on
if ! product_is_started ; then
@ -2098,11 +2102,7 @@ open_close_setup() {
[ -n "$g_nolock" ] || mutex_off
fatal_error "The $COMMAND command requires DYNAMIC_BLACKLIST=Yes in the running configuration"
fi
}
open_close_command() {
local command
local desc
}
[ $# -le 4 ] || fatal_error "Too many parameters"