Sleep for 10 seconds before rebooting and allow disks to catch up

This commit is contained in:
Scott Ullrich 2009-06-30 21:24:34 -04:00
parent 53be9d3c2d
commit d4b8f9a8c8

View File

@ -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.