Add sbin/sysctl

This commit is contained in:
Chris Johns
2016-05-06 15:06:08 +10:00
parent c60deba242
commit 83eb07c4d6
9 changed files with 1113 additions and 1 deletions

View File

@@ -60,6 +60,8 @@ int rtems_bsd_command_dhcpcd(int argc, char **argv);
int rtems_bsd_command_tcpdump(int argc, char **argv);
int rtems_bsd_command_sysctl(int argc, char **argv);
__END_DECLS
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_COMMANDS_H_ */

View File

@@ -37,6 +37,8 @@ extern rtems_shell_cmd_t rtems_shell_HOSTNAME_Command;
extern rtems_shell_cmd_t rtems_shell_TCPDUMP_Command;
extern rtems_shell_cmd_t rtems_shell_SYSCTL_Command;
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@@ -54,3 +54,12 @@ rtems_shell_cmd_t rtems_shell_TCPDUMP_Command = {
NULL, /* alias */
NULL /* next */
};
rtems_shell_cmd_t rtems_shell_SYSCTL_Command = {
"sysctl", /* name */
"sysctl [-bdehiNnoRTqx] [-f filename] name[=value] ...", /* usage */
"net", /* topic */
rtems_bsd_command_sysctl, /* command */
NULL, /* alias */
NULL /* next */
};