summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-26 08:59:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-26 09:21:41 +0200
commitfc34ff801b495bd93e62e4674432b9415f6601d3 (patch)
tree7ef4ab8927abc9a085e18d108c5e2bb225819d86
parentc54fb2ecbdee1a2cbf32340f6ca21ae4c747c4bc (diff)
downloadbarebox-fc34ff801b495bd93e62e4674432b9415f6601d3.tar.gz
barebox-fc34ff801b495bd93e62e4674432b9415f6601d3.tar.xz
commands: mount: detect the device to be mounted
Before mounting a device try to detect it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--commands/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/mount.c b/commands/mount.c
index 939e9bc853..aa769d46fe 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -79,6 +79,8 @@ static int do_mount(int argc, char *argv[])
if (!strncmp(devstr, "/dev/", 5))
devstr += 5;
+ device_detect_by_name(devstr);
+
cdev = cdev_by_name(devstr);
if (!cdev)
return -ENOENT;