mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-07 08:14:00 +01:00
Correct status of optional interface during 'disable'
- If <interface>.status contains 0 but the interface's routing table has been deleted, then 'disable' would not correct the file. - This simple change corrects that problem. Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9b1ef03c49
commit
b619f1333e
@ -1874,6 +1874,8 @@ EOF
|
||||
emit( " stop_$providerref->{what}_$provider",
|
||||
' elif [ -z "$2" ]; then',
|
||||
" startup_error \"Interface $providerref->{physical} is already disabled\"",
|
||||
" else",
|
||||
" echo 1 > \${VARDIR}/$providerref->{physical}.status",
|
||||
' fi',
|
||||
' ;;'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user