mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Sleep for 10 seconds before rebooting and allow disks to catch up
This commit is contained in:
parent
53be9d3c2d
commit
d4b8f9a8c8
@ -290,6 +290,8 @@ pfSenseNanoBSDupgrade)
|
||||
echo "/sbin/sysctl kern.geom.debugflags=0" >> /cf/upgrade_log.txt
|
||||
/sbin/sysctl kern.geom.debugflags=0 >> /cf/upgrade_log.txt 2>&1
|
||||
|
||||
sleep 10
|
||||
|
||||
rm -f /var/run/firmwarelock.dirty
|
||||
sh /etc/rc.reboot
|
||||
|
||||
@ -391,6 +393,9 @@ pfSenseupgrade)
|
||||
rm -f /var/run/firmwarelock.dirty
|
||||
/bin/sync
|
||||
|
||||
# Sleep and allow disks to catch up
|
||||
sleep 10
|
||||
|
||||
# If the archive has unpacked a file called
|
||||
# /tmp/no_upgrade_reboot_required then do
|
||||
# not reboot after upgrade.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user