summaryrefslogtreecommitdiffstats
path: root/etc/rc.bootup
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-xetc/rc.bootup8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 4b8545e..21ce91c 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -357,7 +357,7 @@ voucher_configure();
system_do_shell_commands();
/* start IPsec tunnels */
-vpn_ipsec_configure();
+$ipsec_dynamic_hosts = vpn_ipsec_configure();
/* start SNMP service */
services_snmpd_configure();
@@ -427,6 +427,12 @@ system_syslogd_start();
/* done */
unset($g['booting']);
+/* If there are ipsec dynamic hosts try again to reload the tunnels as rc.newipsecdns does */
+if ($ipsec_dynamic_hosts) {
+ vpn_ipsec_refresh_policies();
+ vpn_ipsec_configure();
+}
+
led_normalize();
conf_mount_ro();
OpenPOWER on IntegriCloud