Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: 提交

system/extras


Commit MetaInfo

修订版998e96d45532fc2672148295e5207987816d6cfb (tree)
时间2018-06-15 17:37:57
作者Chih-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%.

更改概述

差异

--- a/ext4_utils/mkuserimg.sh
+++ b/ext4_utils/mkuserimg.sh
@@ -119,6 +119,9 @@ fi
119119 if [ -z $SIZE ]; then
120120 echo "Need size of filesystem"
121121 exit 2
122+elif [ 0 -eq 0$SIZE ]; then
123+ s=$(du -sm $SRC_DIR | cut -f1)
124+ SIZE=$(($s / 10 + $s))M
122125 fi
123126
124127 OPT=""
Show on old repository browser