wok rev 1775

busybox: default tmpfs size 50% -> 90%
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 28 17:26:25 2008 +0000 (2008-11-28)
parents 22791a4ca944
children a2c146f958fe
files busybox/stuff/init
line diff
     1.1 --- a/busybox/stuff/init	Fri Nov 28 17:25:29 2008 +0000
     1.2 +++ b/busybox/stuff/init	Fri Nov 28 17:26:25 2008 +0000
     1.3 @@ -6,6 +6,7 @@
     1.4  	sed 's/.*rootfssize=\([0-9]*[kmg%]\).*/-o size=\1/')"
     1.5  free=$(busybox free | busybox awk '/Mem:/ { print int(($4*100)/$3) }')
     1.6  umount /proc
     1.7 +[ -n "$size" ] || size="-o size=90%"
     1.8  if [ $free -lt 100 ] || ! mount -t tmpfs $size tmpfs /mnt; then
     1.9  	echo -e "\\033[70G[ \\033[1;33mSkipped\\033[0;39m]"
    1.10  	exec /sbin/init