4 echo "Usage: $0 <tarball> <ext2 size>"
8 ext
=`echo $1 | sed -r -e 's/.+\.([^.]+\.[^.]+)/\1/'`
9 base
=$
(basename $1 .
$ext)
12 if [ "$ext" = "tar.bz2" ]; then
22 tar -x$uncompress -f $1 -C mnt; \
23 genext2fs -d mnt -b $(($2 * 1024)) $dir/$base.img; \