Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-extras: Commit

system/extras


Commit MetaInfo

Révisionea9363796629426e12c64d92354e7d2f9f62a630 (tree)
l'heure2011-01-18 19:12:40
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

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

Calculate the default size by $SRC_DIR size plus 10%.

Change-Id: I94a7f378b12ccdbd39367c81b1153b8654303a93

Change Summary

Modification

--- a/ext4_utils/mkuserimg.sh
+++ b/ext4_utils/mkuserimg.sh
@@ -44,7 +44,7 @@ if [ -z $MOUNT_POINT ]; then
4444 fi
4545
4646 if [ -z $SIZE ]; then
47- SIZE=128M
47+ SIZE=$((`du -sm $SRC_DIR | cut -f1`*11/10))M
4848 fi
4949
5050 MAKE_EXT4FS_CMD="make_ext4fs $ENABLE_SPARSE_IMAGE -l $SIZE -a $MOUNT_POINT $OUTPUT_FILE $SRC_DIR"
Afficher sur ancien navigateur de dépôt.