summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/preinit
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-07-24 15:47:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-07-24 15:47:15 +0000
commite1a654dd9f264d9747c7ea43e7bd35dd5955143a (patch)
treeceaf02ff156e81c90bca3a9ae402672c06976293 /package/base-files/files/lib/preinit
parent766d2494b2116cf369a8206d6d6f310236235751 (diff)
downloadmtk-20170518-e1a654dd9f264d9747c7ea43e7bd35dd5955143a.zip
mtk-20170518-e1a654dd9f264d9747c7ea43e7bd35dd5955143a.tar.gz
mtk-20170518-e1a654dd9f264d9747c7ea43e7bd35dd5955143a.tar.bz2
base-files: unconditionally unlock the rootfs_data partition (#7437)
SVN-Revision: 22377
Diffstat (limited to 'package/base-files/files/lib/preinit')
-rw-r--r--package/base-files/files/lib/preinit/40_mount_jffs21
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/preinit/40_mount_jffs2 b/package/base-files/files/lib/preinit/40_mount_jffs2
index cb743ea..d2f05b0 100644
--- a/package/base-files/files/lib/preinit/40_mount_jffs2
+++ b/package/base-files/files/lib/preinit/40_mount_jffs2
@@ -5,6 +5,7 @@
find_mount_jffs2() {
mkdir -p /tmp/overlay
mount "$(find_mtd_part rootfs_data)" /tmp/overlay -t jffs2
+ mtd -qq unlock rootfs_data
}
jffs2_not_mounted() {