ipsec: Filter better for GRE/VTI interfaces
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Jan 2019 19:10:02 +0000 (20:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Feb 2019 18:20:36 +0000 (18:20 +0000)
This tried to delete the GREEN interface before

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/ipsec-interfaces

index 79f5e7d..b3cd7a9 100644 (file)
@@ -125,7 +125,7 @@ main() {
 
        # Delete all other interfaces
        local intf
-       for intf in /sys/class/net/gre* /sys/class/net/vti*; do
+       for intf in /sys/class/net/gre[0-9]* /sys/class/net/vti[0-9]*; do
                intf="$(basename "${intf}")"
 
                # Ignore a couple of interfaces that cannot be deleted