Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Revisión998e96d45532fc2672148295e5207987816d6cfb (tree)
Tiempo2018-06-15 17:37:57
AutorChih-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%.

Cambiar Resumen

Diferencia incremental

--- 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