summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-30 21:24:34 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-30 21:24:34 -0400
commitd4b8f9a8c87aaa80a53844d60bd2ae72d478bedc (patch)
treeab45835c3b3a20b7488167689db2da97099c61b5 /etc/rc.firmware
parent53be9d3c2d4fa91aa6620f3ed839d05fd092aa7c (diff)
downloadpfsense-d4b8f9a8c87aaa80a53844d60bd2ae72d478bedc.zip
pfsense-d4b8f9a8c87aaa80a53844d60bd2ae72d478bedc.tar.gz
Sleep for 10 seconds before rebooting and allow disks to catch up
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index f9e817d..61b25a0 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.
OpenPOWER on IntegriCloud