ipsec-interfaces: Apply static routes (again) after creating IPsec interfaces
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Mar 2019 15:24:56 +0000 (15:24 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 9 Apr 2019 05:18:42 +0000 (07:18 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/130/filelists/files [new file with mode: 0644]
src/scripts/ipsec-interfaces

diff --git a/config/rootfiles/core/130/filelists/files b/config/rootfiles/core/130/filelists/files
new file mode 100644 (file)
index 0000000..98b8fec
--- /dev/null
@@ -0,0 +1,3 @@
+etc/system-release
+etc/issue
+usr/local/bin/ipsec-interfaces
index 0e43fcc..cb55fdf 100644 (file)
@@ -167,6 +167,9 @@ main() {
                log "Deleting interface ${intf}"
                ip link del "${intf}" &>/dev/null
        done
+
+       # (Re-)Apply all static routes
+       /etc/init.d/static-routes start
 }
 
 main || exit $?