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:
Tom Eastep 2024-04-15 13:29:08 -07:00
parent 9b1ef03c49
commit b619f1333e

View File

@ -1874,6 +1874,8 @@ EOF
emit( " stop_$providerref->{what}_$provider", emit( " stop_$providerref->{what}_$provider",
' elif [ -z "$2" ]; then', ' elif [ -z "$2" ]; then',
" startup_error \"Interface $providerref->{physical} is already disabled\"", " startup_error \"Interface $providerref->{physical} is already disabled\"",
" else",
" echo 1 > \${VARDIR}/$providerref->{physical}.status",
' fi', ' fi',
' ;;' ' ;;'
); );