From 68cd1f0cd55bfe76a44f552fd04e4019539a3a99 Mon Sep 17 00:00:00 2001 From: hagbard Date: Mon, 7 Jan 2019 15:04:28 -0800 Subject: T1026: Removing tunnel deletes all tunnels? --- scripts/vyatta-tunnel-cleanup | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'scripts') diff --git a/scripts/vyatta-tunnel-cleanup b/scripts/vyatta-tunnel-cleanup index 979fb7bd..b8a93244 100755 --- a/scripts/vyatta-tunnel-cleanup +++ b/scripts/vyatta-tunnel-cleanup @@ -28,13 +28,3 @@ foreach my $tun ( $config->listEffectiveNodes() ) { next if ($interface eq $tun); # don't count the one being deleted $tunnel{$mode} = 1; } - -foreach my $type ( keys %encapsulation ) { - # skip if tunnel is still in use - next if $tunnel{$type}; - - my $module = $encapsulation{$type}; - next unless ( -d "/sys/module/$module" ); - system("sudo /sbin/rmmod $module") == 0 - or warn "rmmod $module failed\n"; -} -- cgit v1.2.3