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 size
=$
(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc
/meminfo
)
9 mount none
/tmp
-t tmpfs
-o size
=$size
11 if [ "$1" != "failsafe" ]; then
13 mount |
grep jffs2
>&-
15 if [ $
(cat /proc
/mtd |
wc -l) = 6 ]; then
19 mount
-o remount
,rw
/dev
/root
/
25 mount
/dev
/mtdblock
/4 /jffs
31 mount none
/tmp
-t tmpfs
-o remount
,nosuid
,nodev
,mode
=1777
33 mount none
/dev
/pts
-t devpts
34 mount
-t sysfs none
/sys
2>&-
This page took 0.042815 seconds and 5 git commands to generate.