Project

General

Profile

« Previous | Next » 

Revision 7f38e934

Added by Scott Ullrich about 16 years ago

Use bzcat

View differences:

etc/rc.firmware
228 228

  
229 229
	# Stream gzipped image to dd and explode image to new area
230 230
	echo "" >> /conf/upgrade_log.txt
231
	echo "/usr/bin/gzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k" >> /conf/upgrade_log.txt
232
	/usr/bin/gzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k >> /conf/upgrade_log.txt 2>&1
231
	echo "/usr/bin/bzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k" >> /conf/upgrade_log.txt
232
	/usr/bin/bzcat $IMG | /bin/dd of=/dev/${TOFLASH} bs=64k >> /conf/upgrade_log.txt 2>&1
233 233

  
234 234
	# Grab a after upgrade look at fdisk
235 235
	echo "" >> /conf/upgrade_log.txt
......
298 298

  
299 299
	# Unmount newly prepared slice
300 300
	umount /tmp/$GLABEL_SLICE
301
	
302
	sync
301 303

  
302 304
	# Set active mount slice in fdisk
303 305
	echo "" >> /conf/upgrade_log.txt
304 306
	echo "gpart set -a active -i ${SLICE} ${BOOT_DRIVE}" >> /conf/upgrade_log.txt
305 307
	gpart set -a active -i ${SLICE} ${BOOT_DRIVE}
306 308

  
309
	sync
310

  
307 311
	# Set active boot source - this might be too much. nanobsd does not need this.
308 312
	#echo "" >> /conf/upgrade_log.txt
309 313
	#echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /conf/upgrade_log.txt

Also available in: Unified diff