From 3e6231ea8fe0d33497f85d6a9aa7b3aca4f312dd Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 21 Oct 2017 17:59:56 -0700 Subject: [PATCH] Preserve bootup activation of firewall --- net/debian-linux-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/debian-linux-lib.pl b/net/debian-linux-lib.pl index bb3560f18..0e365bb19 100755 --- a/net/debian-linux-lib.pl +++ b/net/debian-linux-lib.pl @@ -275,8 +275,8 @@ foreach $iface (@ifaces) { foreach my $o (@{$iface->[3]}) { if ($o->[0] eq 'gateway' || $o->[0] eq 'pre-up' && $o->[1] =~ /brctl/ || - $o->[0] =~ /^(pre-)?up$/ && - $o->[1] =~ /ip\s+route/) { + $o->[0] =~ /^(pre-)?up$/ && $o->[1] =~ /ip\s+route/ || + $o->[0] eq 'post-up' && $o->[1] =~ /iptables-restore/) { push(@options, $o); } }