Revision c126b548
Added by Scott Ullrich almost 16 years ago
etc/rc.firmware | ||
---|---|---|
197 | 197 |
# slice that we are going to be operating on. |
198 | 198 |
NEW_IMG_SIZE=`echo $((\`gzip -l ${IMG} | grep -v compressed | awk '{ print $2}'\` / 1024 / 1024))` |
199 | 199 |
SIZE=`/sbin/fdisk ${COMPLETE_PATH} | /usr/bin/grep Meg | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d"(" -f2` |
200 |
SIZE=`expr $SIZE + 1` |
|
200 | 201 |
if [ "$SIZE" -lt "$NEW_IMG_SIZE" ]; then |
201 | 202 |
file_notice "UpgradeFailure" "Upgrade failed due to the upgrade image being larger than the partition that is configured on disk. Halting. Size on disk: $SIZE < Size of new image: $NEW_IMG_SIZE" |
202 | 203 |
rm -f /var/run/firmwarelock.dirty |
Also available in: Unified diff
Add 1 meg to on size disk image