apps/nshlib/nsh.h: nsh: Remove the redundant check for netcmd. Checking FS_PROCFS and FS_PROCFS_EXCLUDE_NET is enough and make the type of network device could be shown by ifconfig.

This commit is contained in:
Xiang Xiao 2019-11-03 09:33:57 -06:00 committed by Gregory Nutt
parent 7f653a87f7
commit 93017735ef

View File

@ -109,19 +109,6 @@
* domain sockets were enable.
*/
#if !defined(CONFIG_NET_ETHERNET) && !defined(CONFIG_NET_6LOWPAN) && \
!defined(CONFIG_NET_IEEE802154) && !defined(CONFIG_NET_LOOPBACK) && \
!defined(CONFIG_NET_SLIP) && !defined(CONFIG_NET_TUN)
/* No link layer protocol is a good indication that there is no network
* device.
*/
# undef CONFIG_NSH_DISABLE_IFUPDOWN
# undef CONFIG_NSH_DISABLE_IFCONFIG
# define CONFIG_NSH_DISABLE_IFUPDOWN 1
# define CONFIG_NSH_DISABLE_IFCONFIG 1
#endif
/* Telnetd requires networking support */
#ifndef CONFIG_NET