# HG changeset patch # User Pascal Bellard # Date 1227893185 0 # Node ID f0cb83ba12fd2df9987bd04d694853278c2a6c57 # Parent 22791a4ca9441d5a8322859b4ac32a1d59de1bf7 busybox: default tmpfs size 50% -> 90% diff -r 22791a4ca944 -r f0cb83ba12fd busybox/stuff/init --- a/busybox/stuff/init Fri Nov 28 17:25:29 2008 +0000 +++ b/busybox/stuff/init Fri Nov 28 17:26:25 2008 +0000 @@ -6,6 +6,7 @@ sed 's/.*rootfssize=\([0-9]*[kmg%]\).*/-o size=\1/')" free=$(busybox free | busybox awk '/Mem:/ { print int(($4*100)/$3) }') umount /proc +[ -n "$size" ] || size="-o size=90%" if [ $free -lt 100 ] || ! mount -t tmpfs $size tmpfs /mnt; then echo -e "\\033[70G[ \\033[1;33mSkipped\\033[0;39m]" exec /sbin/init