nshlib: mount command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/mount when there are no arguments to the mount command.

This commit is contained in:
Gregory Nutt
2017-10-26 12:17:03 -06:00
parent a8bf5718f5
commit 20076688c2
2 changed files with 12 additions and 48 deletions

View File

@@ -684,7 +684,8 @@ int cmd_route(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
if (!ipv6)
#endif
{
return nsh_catfile(vtbl, argv[0], "/proc/net/route/ipv4");
return nsh_catfile(vtbl, argv[0],
CONFIG_NSH_PROC_MOUNTPOINT "/net/route/ipv4");
}
#endif
@@ -693,7 +694,8 @@ int cmd_route(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
else
#endif
{
return nsh_catfile(vtbl, argv[0], "/proc/net/route/ipv6");
return nsh_catfile(vtbl, argv[0],
CONFIG_NSH_PROC_MOUNTPOINT "/net/route/ipv6");
}
#endif