allow mtd devices to be mounted by block tool
authorJohn Crispin <blogic@openwrt.org>
Tue, 23 Jul 2013 11:43:10 +0000 (13:43 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 23 Jul 2013 11:44:08 +0000 (13:44 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
block.c

diff --git a/block.c b/block.c
index 1c78a72470205e3fd3585a75a325151d4790e2e4..5ae0fd01fbeedbdc5aa261a951fb2ea760b6584e 100644 (file)
--- a/block.c
+++ b/block.c
@@ -513,7 +513,7 @@ static int mount_device(struct blkid_struct_probe *pr, int hotplug)
 
        if (m) {
                char *target = m->target;
-               char _target[] = "/mnt/mmcblk123";
+               char _target[32];
                int err = 0;
 
                if (!target) {
@@ -804,7 +804,7 @@ static int main_mount(int argc, char **argv)
        if (config_load(NULL))
                return -1;
 
-       cache_load(0);
+       cache_load(1);
        list_for_each_entry(pr, &devices, list)
                mount_device(pr, 0);