adjsize 298 Bytes
#!/bin/sh
#
# Adjust disk size in builddisk output.
#

BCNT=`grep 'Approximate block count:' $1 | sed 's/^[^0-9]*//'`
CNT=`expr $BCNT + $3`

echo "Suggested block count: $BCNT"
echo "Allocated block count: $CNT"

sed '2 s/^[0-9]*/'$CNT'/' $1 >$2
if [ $? != 0 ] ; then
	echo "*** sed failed ***"
fi