2 # Copyright (C) 2006 OpenWrt.org
6 mtdpart
="$(find_mtd_part rootfs_data)"
7 magic
=$
(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
8 [ "$magic" != "deadc0de" ]
11 grep rootfs_data
/proc
/mtd
>/dev
/null
2>/dev
/null
&& {
13 mtd unlock rootfs_data
15 echo "switching to jffs2"
16 mount
"$(find_mtd_part rootfs_data)" /jffs
-t jffs2
&& \
19 echo "jffs2 not ready yet; using ramdisk"
24 mount
-o remount
,rw
/dev
/root
/
This page took 0.047557 seconds and 5 git commands to generate.