summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-28 17:03:58 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-28 17:03:58 -0400
commit024445ee7f95449ebf2738abd90396ca348df4f7 (patch)
treeaf9eb68117af36fc319a317ff9cbb3655e05d334 /etc/rc.firmware
parent0790b420c4a16a42822d48edadb349a654b00179 (diff)
downloadpfsense-024445ee7f95449ebf2738abd90396ca348df4f7.zip
pfsense-024445ee7f95449ebf2738abd90396ca348df4f7.tar.gz
Use gzcat
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 405b965..432b6ab 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -171,6 +171,11 @@ pfSenseNanoBSDupgrade)
# Output environment information to log file
output_env_to_log
+ # Log that we are really doing a NanoBSD upgrade
+ echo "" >> /cf/upgrade_log.txt
+ echo "NanoBSD upgrade starting" >> /cf/upgrade_log.txt
+ echo "" >> /cf/upgrade_log.txt
+
# Foot shooting is fun!
echo "" >> /cf/upgrade_log.txt
echo "/sbin/sysctl kern.geom.debugflags=16" >> /cf/upgrade_log.txt
@@ -183,8 +188,8 @@ pfSenseNanoBSDupgrade)
# Stream gzipped image to dd and explode image to new area
echo "" >> /cf/upgrade_log.txt
- echo "/usr/bin/gunzip -S '' -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k" >> /cf/upgrade_log.txt
- /usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k >> /cf/upgrade_log.txt 2>&1
+ echo "/usr/bin/gzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k" >> /cf/upgrade_log.txt
+ /usr/bin/gzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k >> /cf/upgrade_log.txt 2>&1
# Ensure that our new system is sound and bail if it is not and file a notice
echo "" >> /cf/upgrade_log.txt
OpenPOWER on IntegriCloud