summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-07 18:17:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-07 18:17:43 +0000
commit21fbee83a9f7571a79f0be908012b6c6fff92646 (patch)
tree02448cb28f70651e760c54bc949c3b7a204bc543 /etc
parent2a5b92152f71c5feb6810dfe7ba58eff594e15d4 (diff)
downloadpfsense-21fbee83a9f7571a79f0be908012b6c6fff92646.zip
pfsense-21fbee83a9f7571a79f0be908012b6c6fff92646.tar.gz
* sync before forcing umount.
* sleep for 5 seconds
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.firmware6
-rwxr-xr-xetc/rc.firmware_auto8
2 files changed, 12 insertions, 2 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 9331723..9249519 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -118,6 +118,9 @@ upgrade)
rm -f /var/run/firmware.lock
+ /bin/sync
+ sleep 5
+
# remount /cf ro
/sbin/umount -f /cf
/sbin/mount -r /cf
@@ -175,6 +178,9 @@ pfSenseupgrade)
rm -f /var/run/firmware.lock
+ /bin/sync
+ sleep 5
+
# remount /cf ro
/bin/sync
/etc/rc.conf_mount_rw
diff --git a/etc/rc.firmware_auto b/etc/rc.firmware_auto
index ad04ce5..0f34fec 100755
--- a/etc/rc.firmware_auto
+++ b/etc/rc.firmware_auto
@@ -54,10 +54,14 @@ if [ "$PMD" = "$MD" ]; then
else
sh /etc/rc.firmware pfSenseupgrade /tmp/latest.tgz
fi
- if [ "$PLATFORM" = "wrap" ]; then
+ if [ "$PLATFORM" = "wrap" ]; then
+ /bin/sync
+ sleep 5
/usr/local/bin/php /etc/rc.conf_mount_ro
fi
- if [ "$PLATFORM" = "net45xx" ]; then
+ if [ "$PLATFORM" = "net45xx" ]; then
+ /bin/sync
+ sleep 5
/usr/local/bin/php /etc/rc.conf_mount_ro
fi
exit 0
OpenPOWER on IntegriCloud