From d4b8f9a8c87aaa80a53844d60bd2ae72d478bedc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 30 Jun 2009 21:24:34 -0400 Subject: [PATCH] Sleep for 10 seconds before rebooting and allow disks to catch up --- etc/rc.firmware | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/rc.firmware b/etc/rc.firmware index f9e817d898..61b25a0145 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -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.