source configuration only for valid actions
This commit is contained in:
parent
36d4a2e9a8
commit
80ebea31cf
|
@ -16,6 +16,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
||||||
* use long options in some places
|
* use long options in some places
|
||||||
* output is normalized
|
* output is normalized
|
||||||
* source legacy config after macros but before DROP policy
|
* source legacy config after macros but before DROP policy
|
||||||
|
* source configuration only for valid actions
|
||||||
* improve legacy config parsing
|
* improve legacy config parsing
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
18
minifirewall
18
minifirewall
|
@ -1049,27 +1049,39 @@ of the License.
|
||||||
END
|
END
|
||||||
}
|
}
|
||||||
|
|
||||||
source_configuration
|
|
||||||
check_unpersisted_state
|
|
||||||
|
|
||||||
case "${1:-''}" in
|
case "${1:-''}" in
|
||||||
start)
|
start)
|
||||||
|
source_configuration
|
||||||
|
check_unpersisted_state
|
||||||
|
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
|
source_configuration
|
||||||
|
check_unpersisted_state
|
||||||
|
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
|
|
||||||
status)
|
status)
|
||||||
|
source_configuration
|
||||||
|
check_unpersisted_state
|
||||||
|
|
||||||
status
|
status
|
||||||
;;
|
;;
|
||||||
|
|
||||||
reset)
|
reset)
|
||||||
|
source_configuration
|
||||||
|
check_unpersisted_state
|
||||||
|
|
||||||
reset
|
reset
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
|
source_configuration
|
||||||
|
check_unpersisted_state
|
||||||
|
|
||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue