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>
This commit is contained in:
parent
c54fb2ecbd
commit
fc34ff801b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue