Project

General

Profile

« Previous | Next » 

Revision db3c87be

Added by Scott Ullrich about 16 years ago

Oops, add spacer before command name output

View differences:

etc/rc.firmware
211 211
	top >> /cf/upgrade_log.txt
212 212

  
213 213
	# Foot shooting is fun!
214
	echo "/sbin/sysctl kern.geom.debugflags=16" >> /cf/upgrade_log.txt
215 214
	echo "" >> /cf/upgrade_log.txt
215
	echo "/sbin/sysctl kern.geom.debugflags=16" >> /cf/upgrade_log.txt
216 216
	/sbin/sysctl kern.geom.debugflags=16 >> /cf/upgrade_log.txt 2>&1
217 217

  
218 218
	# Remove TOFLASH and get ready for new flash image
219
	echo "dd if=/dev/zero of=/dev/${TOFLASH} bs=1m count=1" >> /cf/upgrade_log.txt	
220 219
	echo "" >> /cf/upgrade_log.txt
220
	echo "dd if=/dev/zero of=/dev/${TOFLASH} bs=1m count=1" >> /cf/upgrade_log.txt	
221 221
	dd if=/dev/zero of=/dev/${TOFLASH} bs=1m count=1 >> /cf/upgrade_log.txt 2>&1
222 222

  
223 223
	# Stream gzipped image to dd and explode image to new area
224
	echo "/usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k" >> /cf/upgrade_log.txt
225 224
	echo "" >> /cf/upgrade_log.txt
225
	echo "/usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k" >> /cf/upgrade_log.txt
226 226
	/usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k >> /cf/upgrade_log.txt 2>&1
227 227
	
228 228
	# Ensure that our new system is sound and bail if it is not and file a notice
229
	echo "/sbin/fsck_ffs -y /dev/$COMPLETE_PATH" >> /cf/upgrade_log.txt
230 229
	echo "" >> /cf/upgrade_log.txt
230
	echo "/sbin/fsck_ffs -y /dev/$COMPLETE_PATH" >> /cf/upgrade_log.txt
231 231
	/sbin/fsck_ffs -y /dev/$COMPLETE_PATH >> /cf/upgrade_log.txt 2>&1
232 232
	if [ $? != 0 ]; then
233 233
		/usr/local/bin/php -q -d auto_prepend_file=config.inc <<ENDOFF
......
242 242
	fi
243 243

  
244 244
	# Add back the corresponding glabel
245
	echo "/sbin/tunefs -L pfsense${GLABEL_SLICE} /dev/$COMPLETE_PATH" >> /cf/upgrade_log.txt
246 245
	echo "" >> /cf/upgrade_log.txt
246
	echo "/sbin/tunefs -L pfsense${GLABEL_SLICE} /dev/$COMPLETE_PATH" >> /cf/upgrade_log.txt
247 247
	/sbin/tunefs -L ${GLABEL_SLICE} /dev/$COMPLETE_PATH >> /cf/upgrade_log.txt 2>&1
248 248

  
249
	echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /cf/upgrade_log.txt
250 249
	echo "" >> /cf/upgrade_log.txt
250
	echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /cf/upgrade_log.txt
251 251
	/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE} >> /cf/upgrade_log.txt 2>&1
252 252

  
253 253
	# restore config

Also available in: Unified diff