From 3935f9dd7ccde7e771f71dcd146bb18540354d8d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 24 Jul 2009 19:41:04 -0400 Subject: [PATCH] Show size of detected on disk partition and size of upgrade file --- etc/rc.firmware | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/rc.firmware b/etc/rc.firmware index 17ba89d44c..909415ade0 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -198,8 +198,7 @@ pfSenseNanoBSDupgrade) NEW_IMG_SIZE=`echo $((\`gzip -l ${IMG} | grep -v compressed | awk '{ print $2}'\` / 1024 / 1024))` SIZE=`/sbin/fdisk ${COMPLETE_PATH} | /usr/bin/grep Meg | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d"(" -f2` if [ "$SIZE" -lt "$NEW_IMG_SIZE" ]; then - file_notice "UpgradeFailure" "Upgrade failed due to the upgrade image being larger than the partition that is configured on disk. Halting." - echo "Upgrade failed. Please check the system log file for more information" | wall + file_notice "UpgradeFailure" "Upgrade failed due to the upgrade image being larger than the partition that is configured on disk. Halting. $SIZE < $NEW_IMG_SIZE" echo "Upgrade failed. Please check the system log file for more information" | wall rm /var/run/firmwarelock.dirty /etc/rc.conf_mount_ro exit 1