From b619f1333edab3b8fe3b4c609e4d1239ea97c373 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 15 Apr 2024 13:29:08 -0700 Subject: [PATCH] Correct status of optional interface during 'disable' - If .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 --- Shorewall/Perl/Shorewall/Providers.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 3ab9be717..b2fd6bfe4 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -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', ' ;;' );