From a3b8edea264430569b9039fb78f6434bd7539557 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 26 Jun 2009 16:58:15 -0400 Subject: Foot shooting is fun. Add some debugging echos to logger --- etc/rc.firmware | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etc/rc.firmware b/etc/rc.firmware index 9c88386..4680e20 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -187,15 +187,25 @@ pfSenseNanoBSDupgrade) TOFLASH="${BOOT_DRIVE}s${SLICE}" fi + echo $SLICE + echo $TOFLASH + echo $BOOT_DRIVE + + # Foot shooting is fun! + /sbin/sysctl kern.geom.debugflags=16 + # Remove TOFLASH and get ready for new flash image dd if=/dev/zero of=/dev/${TOFLASH} bs=1m count=1 + echo "dd if=/dev/zero of=/dev/${TOFLASH} bs=1m count=1" | logger -p daemon.info -i -t Upgrade #>/dev/null 2>&1 # Stream gzipped image to dd and explode image to new area + echo "/usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k" | logger -p daemon.info -i -t Upgrade /usr/bin/gunzip -S "" -c $IMG | /bin/dd of=/dev/${TOFLASH} bs=16k #>/dev/null 2>&1 # Ensure that our new system is sound and bail if it is not and file a notice + echo "/sbin/fsck_ffs -n /dev/${TOFLASH}a" | logger -p daemon.info -i -t Upgrade /sbin/fsck_ffs -n /dev/${TOFLASH}a if [ $? != 0 ]; then /usr/local/bin/php -q -d auto_prepend_file=config.inc </dev/null 2>&1 -- cgit v1.1