2 # Copyright (C) 2006 OpenWrt.org
6 mtdpart
="$(find_mtd_part linux)"
7 grep Broadcom
/proc
/cpuinfo
>&- ||
return 1
8 OFFSET
="$(($(hexdump -v $mtdpart -s 20 -n 2 -e '"%d
"')-1))"
9 return $
(hexdump -v $mtdpart -s $OFFSET -n 1 -e '"%d"')
12 if grep devfs
/proc
/filesystems
> /dev
/null
; then
13 mount none
/dev
-t devfs
15 mount
-t sysfs none
/sys
16 mount
-t tmpfs tmpfs
/dev
-o size
=512K
17 mknod
/dev
/console c
5 1
22 mount none
/dev
/pts
-t devpts
24 if [ "$1" != "failsafe" ]; then
26 mount |
grep jffs2
>&-
28 mount
-o remount
,rw
/dev
/root
/
33 echo "switching to jffs2"
34 mount $
(find_mtd_part OpenWrt
) /jffs
-t jffs2
37 echo "jffs2 not ready yet; using ramdisk"
43 grep sysfs
/proc
/filesystems
>/dev
/null
&& mount
-t sysfs none
/sys
2>&-
This page took 0.047171 seconds and 5 git commands to generate.