3 grep Broadcom
/proc
/cpuinfo
>&- ||
return 1
4 OFFSET
="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d
"')-1))"
5 return $
(hexdump -v /dev
/mtdblock
/1 -s $OFFSET -n 1 -e '"%d"')
8 if [ "$1" != "failsafe" -a "$(nvram get no_root_swap)" != 1 ]; then
10 mount |
grep jffs2
>&-
12 if [ $
(cat /proc
/mtd |
wc -l) = 6 ]; then
16 mount
-o remount
,rw
/dev
/root
/
21 firstboot ramoverlay
>&- 2>&-
23 mount
/dev
/mtdblock
/4 /jffs
24 pivot_root
/jffs
/jffs
/rom
25 mount none
/proc
-t proc
27 mount
-o move
/rom
/dev
/dev
32 mount none
/tmp
-t tmpfs
-o nosuid
,nodev
,mode
=1777,size
=50%
34 mount none
/dev
/pts
-t devpts
35 mount
-t sysfs none
/sys
2>&-