summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
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