diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-24 19:40:48 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-24 19:41:28 -0400 |
commit | f4ea019240882857b856c14a6ed16fe84d399d03 (patch) | |
tree | 042bf49bddf1818ff967fd32c1caf044f1cfeb2a /etc/rc.firmware | |
parent | 7849bdd562757f77cedc74a120559f70c439f53a (diff) | |
download | pfsense-f4ea019240882857b856c14a6ed16fe84d399d03.zip pfsense-f4ea019240882857b856c14a6ed16fe84d399d03.tar.gz |
Show size of detected on disk partition and size of upgrade file
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-x | etc/rc.firmware | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index 17ba89d..ae472d6 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -198,7 +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." + 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 |