mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 23:53:30 +01:00
Move mutex handling to the main program.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
21b9a194ca
commit
9c4a01bcdd
@ -1236,8 +1236,6 @@ sub process_providers( $ ) {
|
||||
enable_provider() {
|
||||
g_interface=$1;
|
||||
|
||||
mutex_on
|
||||
|
||||
case $g_interface in
|
||||
EOF
|
||||
|
||||
@ -1273,7 +1271,6 @@ EOF
|
||||
;;
|
||||
esac
|
||||
|
||||
mutex_off
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -348,7 +348,9 @@ case "$COMMAND" in
|
||||
[ $# -eq 1 ] && exit 0
|
||||
shift
|
||||
[ $# -ne 1 ] && usage 2
|
||||
updown $1
|
||||
mutex_on
|
||||
( updown $1 )
|
||||
mutex_off
|
||||
status=0
|
||||
;;
|
||||
enable)
|
||||
|
Loading…
Reference in New Issue
Block a user