2 size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
3 mount none /tmp -t tmpfs -o size=$size
5 if [ "$1" != "failsafe" ]; then
9 if [ $(cat /proc/mtd | wc -l) = 6 ]; then
13 mount -o remount,rw /dev/root /
20 mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
22 mount none /dev/pts -t devpts
23 mount -t sysfs none /sys 2>&-