diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-26 08:59:02 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-26 09:21:41 +0200 |
commit | fc34ff801b495bd93e62e4674432b9415f6601d3 (patch) | |
tree | 7ef4ab8927abc9a085e18d108c5e2bb225819d86 /commands/mount.c | |
parent | c54fb2ecbdee1a2cbf32340f6ca21ae4c747c4bc (diff) | |
download | barebox-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>
Diffstat (limited to 'commands/mount.c')
-rw-r--r-- | commands/mount.c | 2 |
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; |