wok diff busybox/stuff/init @ rev 2380
curl: back to 7.19.2 to fix firefox/flash crash
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 08 00:49:08 2009 +0100 (2009-03-08) |
parents | 497da1516e30 |
children | 3c8195fabdd1 |
line diff
1.1 --- a/busybox/stuff/init Thu Nov 27 16:12:32 2008 +0000 1.2 +++ b/busybox/stuff/init Sun Mar 08 00:49:08 2009 +0100 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