diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 14:57:45 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 14:57:45 -0400 |
commit | 7f38e9340e0207c47fee064bb0211d6185d974e5 (patch) | |
tree | 901d81966ccda12462d30888f1178b362191b98d /etc/rc.firmware | |
parent | dfb5933ae540b0477639e8f80d74a7541d314ace (diff) | |
download | pfsense-7f38e9340e0207c47fee064bb0211d6185d974e5.zip pfsense-7f38e9340e0207c47fee064bb0211d6185d974e5.tar.gz |
Use bzcat
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-x | etc/rc.firmware | 8 |
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 |