2 # Copyright (C) 2006 OpenWrt.org
5 grep Broadcom
/proc
/cpuinfo
>&- ||
return 1
6 OFFSET
="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d
"')-1))"
7 return $
(hexdump -v /dev
/mtdblock
/1 -s $OFFSET -n 1 -e '"%d"')
10 if [ "$1" != "failsafe" ]; then
12 mount |
grep jffs2
>&-
14 mount
-o remount
,rw
/dev
/root
/
19 echo "switching to jffs2"
20 mount
/dev
/mtdblock
/4 /jffs
-t jffs2
23 echo "jffs2 not ready yet; using ramdisk"
30 mount none
/dev
/pts
-t devpts
2>&-
31 grep sysfs
/proc
/filesystems
>/dev
/null
&& mount
-t sysfs none
/sys
2>&-
This page took 0.056662 seconds and 5 git commands to generate.