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 grep "mini_fo" /proc
/filesystems
>&- ||
13 mount
-o remount
,rw
/dev
/root
/
18 echo "switching to jffs2"
19 mount
/dev
/mtdblock
/4 /jffs
-t jffs2
22 echo "jffs2 not ready yet; using ramdisk"
28 mount none
/tmp
-t tmpfs
-o remount
,nosuid
,nodev
,mode
=1777
30 mount none
/dev
/pts
-t devpts
2>&-
31 mount
-t sysfs none
/sys
2>&-