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:
parent
7f653a87f7
commit
93017735ef
13
nshlib/nsh.h
13
nshlib/nsh.h
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user