summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-05 14:57:45 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-05 14:57:45 -0400
commit7f38e9340e0207c47fee064bb0211d6185d974e5 (patch)
tree901d81966ccda12462d30888f1178b362191b98d /etc/rc.firmware
parentdfb5933ae540b0477639e8f80d74a7541d314ace (diff)
downloadpfsense-7f38e9340e0207c47fee064bb0211d6185d974e5.zip
pfsense-7f38e9340e0207c47fee064bb0211d6185d974e5.tar.gz
Use bzcat
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index b66bd64..6917df6 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -228,8 +228,8 @@ pfSenseNanoBSDupgrade)
# Stream gzipped image to dd and explode image to new area
echo "" >> /conf/upgrade_log.txt
- echo "/usr/bin/gzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k" >> /conf/upgrade_log.txt
- /usr/bin/gzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k >> /conf/upgrade_log.txt 2>&1
+ echo "/usr/bin/bzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k" >> /conf/upgrade_log.txt
+ /usr/bin/bzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k >> /conf/upgrade_log.txt 2>&1
# Grab a after upgrade look at fdisk
echo "" >> /conf/upgrade_log.txt
@@ -298,12 +298,16 @@ pfSenseNanoBSDupgrade)
# Unmount newly prepared slice
umount /tmp/$GLABEL_SLICE
+
+ sync
# Set active mount slice in fdisk
echo "" >> /conf/upgrade_log.txt
echo "gpart set -a active -i ${SLICE} ${BOOT_DRIVE}" >> /conf/upgrade_log.txt
gpart set -a active -i ${SLICE} ${BOOT_DRIVE}
+ sync
+
# Set active boot source - this might be too much. nanobsd does not need this.
#echo "" >> /conf/upgrade_log.txt
#echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /conf/upgrade_log.txt
OpenPOWER on IntegriCloud