2 # Copyright (C) 2006 OpenWrt.org
5 mount none
/proc
-t proc
6 size
=$
(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc
/meminfo
)
7 mount none
/tmp
-t tmpfs
-o size
=$size,nosuid
,nodev
,mode
=1777
8 if grep devfs
/proc
/filesystems
> /dev
/null
; then
9 mount none
/dev
-t devfs
11 mount
-t sysfs none
/sys
12 mount
-t tmpfs tmpfs
/dev
-o size
=512K
13 mknod
/dev
/console c
5 1
14 exec >/dev
/console
</dev
/console
2>&1
16 /sbin
/hotplug2
--no-persistent --coldplug
19 mount none
/dev
/pts
-t devpts
21 [ failsafe
!= "$1" ] && {
22 grep rootfs
/proc
/mtd
>/dev
/null
2>/dev
/null
&& {
24 grep rootfs_data
/proc
/mtd
>/dev
/null
2>/dev
/null
&& {
26 echo "switching to jffs2"
27 mount
"$(find_mtd_part rootfs_data)" /jffs
-t jffs2
30 } || mount
-o remount
,rw
/dev
/root
/
This page took 0.041977 seconds and 5 git commands to generate.