diff options
-rwxr-xr-x | etc/rc.firmware | 6 | ||||
-rwxr-xr-x | etc/rc.firmware_auto | 8 |
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 |