X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=ext4_utils%2Fmkuserimg.sh;fp=ext4_utils%2Fmkuserimg.sh;h=043521576bfcf0d09ba179e92238d7d984b6701c;hb=4c64ea2cb82efcf14bf4f69375d558ae722e9c01;hp=c44129e786b1023adbc628cc9d4e9a199f6049a8;hpb=db8c591dae3d4b208feeb9faca89feedf1affa0a;p=android-x86%2Fsystem-extras.git diff --git a/ext4_utils/mkuserimg.sh b/ext4_utils/mkuserimg.sh index c44129e7..04352157 100755 --- a/ext4_utils/mkuserimg.sh +++ b/ext4_utils/mkuserimg.sh @@ -47,6 +47,8 @@ fi if [ -z $SIZE ]; then echo "Need size of filesystem" exit 2 +elif [ 0 -eq 0$SIZE ]; then + SIZE=$((`du -sm $SRC_DIR | cut -f1`*11/10))M fi if [ -n "$FC" ]; then