Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Revisioneb790ea0751341e712682a315d0eb2339538ed45 (tree)
Time2016-05-05 19:14:51
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

mkuserimg.sh: set default size according to the $SRC_DIR size

Add extra size by the $SRC_DIR size plus 10%.

Change Summary

Incremental Difference

--- a/ext4_utils/mkuserimg.sh
+++ b/ext4_utils/mkuserimg.sh
@@ -88,6 +88,9 @@ fi
8888 if [ -z $SIZE ]; then
8989 echo "Need size of filesystem"
9090 exit 2
91+elif [ 0 -eq 0$SIZE ]; then
92+ s=$(du -sm $SRC_DIR | cut -f1)
93+ SIZE=$(($s / 10 + $s))M
9194 fi
9295
9396 OPT=""
Show on old repository browser