1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 12:17:26 +01:00

fixed #1585 script should not restart itself, just fill a variable with default command "start"

This commit is contained in:
Vadim Kurland 2010-07-18 00:21:35 +00:00
parent cb020de62c
commit 20caea4f99
2 changed files with 8 additions and 8 deletions

View File

@ -72,12 +72,12 @@ reset_all() {
# See how we were called.
# For backwards compatibility missing argument is equivalent to 'start'
test -z "$1" && {
$0 start
exit $?
cmd=$1
test -z "$cmd" && {
cmd="start"
}
case "$1" in
case "$cmd" in
start)
log "Activating firewall script generated {{$timestamp}} by {{$user}}"
check_tools

View File

@ -79,12 +79,12 @@ reset_all() {
# See how we were called.
# For backwards compatibility missing argument is equivalent to 'start'
test -z "$1" && {
$0 start
exit $?
cmd=$1
test -z "$cmd" && {
cmd="start"
}
case "$1" in
case "$cmd" in
start)
log "Activating firewall script generated {{$timestamp}} by {{$user}}"
log "Database was {{$database}}"