wok-next rev 8013

busybox: Fixed init script to umount /proc. If it doesn't it will crash the livecd.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jan 19 12:35:53 2011 +0000 (2011-01-19)
parents d0c6a2d1c542
children 152224d80dd5
files busybox/stuff/init
line diff
     1.1 --- a/busybox/stuff/init	Wed Jan 19 16:53:00 2011 +0100
     1.2 +++ b/busybox/stuff/init	Wed Jan 19 12:35:53 2011 +0000
     1.3 @@ -139,6 +139,7 @@
     1.4  size="$(grep rootfssize= < /proc/cmdline | \
     1.5  	sed 's/.*rootfssize=\([0-9]*[kmg%]\).*/-o size=\1/')"
     1.6  free=$(busybox free | busybox awk '/Mem:/ { print int(($4*100)/$3) }')
     1.7 +umount /proc
     1.8  [ -n "$size" ] || size="-o size=90%"
     1.9  if [ $free -lt 100 ] || ! mount -t tmpfs $size tmpfs /mnt; then
    1.10  	echo -e "\\033[70G[ \\033[1;33mSkipped\\033[0;39m]"