From: John Crispin Date: Tue, 23 Jul 2013 11:43:10 +0000 (+0200) Subject: allow mtd devices to be mounted by block tool X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubox.git;a=commitdiff_plain;h=8c74ca9f613746b9c1f54a17f576a0cd449a8cc6 allow mtd devices to be mounted by block tool Signed-off-by: John Crispin --- diff --git a/block.c b/block.c index 1c78a72..5ae0fd0 100644 --- 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);