mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user