mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Properly unset booting flags to allow dynamic ipsec tunnels to work correctly
This commit is contained in:
parent
e26effd340
commit
f658bac744
8
etc/rc
8
etc/rc
@ -413,9 +413,11 @@ echo -n "Launching the init system..."
|
||||
/usr/bin/touch $varrunpath/booting
|
||||
/etc/rc.bootup
|
||||
|
||||
# /etc/rc.bootup unset $g['booting'], remove file right now to be
|
||||
# consistent
|
||||
/bin/rm $varrunpath/booting
|
||||
# /etc/rc.bootup unset $g['booting'], and removes file
|
||||
# Be sure the file is removed to not create troubles after
|
||||
if [ -f $varrunpath/booting ]; then
|
||||
/bin/rm $varrunpath/booting
|
||||
fi
|
||||
|
||||
# If a shell was selected from recovery
|
||||
# console then just drop to the shell now.
|
||||
|
||||
@ -442,6 +442,7 @@ system_syslogd_start();
|
||||
|
||||
/* done */
|
||||
unset($g['booting']);
|
||||
@unlink("{$g['varrun_path']}/booting");
|
||||
|
||||
/* If there are ipsec dynamic hosts try again to reload the tunnels as rc.newipsecdns does */
|
||||
if ($ipsec_dynamic_hosts) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user