[package] base-files: rewrite killing of nonessential services to not rely on top...
[openwrt.git] / package / base-files / files / lib / preinit / 40_mount_jffs2
index 99fe262c68620505f5c9c30aa426049af0fbe50e..00f45a8908c6b525411d46db8a69a02f67a28c3a 100644 (file)
@@ -3,7 +3,9 @@
 # Copyright (C) 2010 Vertical Communications
 
 find_mount_jffs2() {
-    mount "$(find_mtd_part rootfs_data)" /jffs -t jffs2
+    mkdir -p /tmp/overlay
+    mount "$(find_mtd_part rootfs_data)" /tmp/overlay -t jffs2
+    mtd -qq unlock rootfs_data
 }
 
 jffs2_not_mounted() {