diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-11 19:03:46 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-11 19:03:46 -0500 |
commit | 44ffbd53c6b956ef12d2e530d04ec5b530c2b161 (patch) | |
tree | 6a5e1d2f36b5e420a9b9386490f3d4d32e5fe511 /testsuite/netshell01 | |
parent | Userspace Makefile: Clean up yacc/lex handling to avoid conflicts (diff) | |
download | rtems-libbsd-44ffbd53c6b956ef12d2e530d04ec5b530c2b161.tar.bz2 |
Add ifconfig command as RTEMS Shell command
This is enough to be able to invoke the ifconfig command but it
calls exit() which is inappropriate.
The "struct option" in the ifconfig code conflicts with a structure
of the same name in newlib's and glibc's getopt.h.
Diffstat (limited to 'testsuite/netshell01')
-rw-r--r-- | testsuite/netshell01/shellconfig.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/netshell01/shellconfig.c b/testsuite/netshell01/shellconfig.c index df3e4211..ee914c76 100644 --- a/testsuite/netshell01/shellconfig.c +++ b/testsuite/netshell01/shellconfig.c @@ -10,7 +10,9 @@ #define CONFIGURE_SHELL_COMMANDS_ALL #define CONFIGURE_SHELL_USER_COMMANDS \ - &rtems_shell_PING_Command + &rtems_shell_PING_Command, \ + &rtems_shell_ROUTE_Command, \ + &rtems_shell_IFCONFIG_Command #include <rtems/shellconfig.h> |