Jiuzhu Dong
63f28099e3
nsh/timedatectl: add timedatectl to get/set TZ
...
follow https://man7.org/linux/man-pages/man1/timedatectl.1.html
nsh> timedatectl
TimeZone: CST, 28800
Local time: Sat, Apr 02 05:59:43 2022 CST
Universal time: Fri, Apr 01 21:59:43 2022 GMT
RTC time: Sun, Apr 01 21:59:42 2022
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-07 02:52:11 +08:00
ligd
470174260c
rptun: update rptun cmd usage
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
f5d2c64556
rptun: add rptun ping support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
622784be89
rptun cmd: add broadcast rptun cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
e0e5652de4
rptun: add rptun dump support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
d5aae96523
apps: add rptun reset /dev/rptun/xx cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
ligd
c57677c3ce
apps: add rptun /dev/rptun/xx panic cmd
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-04-01 17:36:51 +08:00
Jiuzhu Dong
de61706552
nsh/memdump: support dynamic turn on/off backtrace in heap
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-01 13:31:28 +08:00
田昕
cbc9163266
apps/nsh:add resetcause command
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-03-31 12:09:24 +03:00
anjiahao
eabba4ca20
cmd_mkdir:support mkdir opthon -p
...
use "mkdir -p /test/test" to ceate a dir
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-03-16 13:53:45 +08:00
Jiuzhu Dong
283b1a4dfc
nshlib/cmd_memdump: support new command: memdump
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-02-24 02:16:00 +08:00
liuhaitao
4b8e0fde62
nshlib: Add 'rm -r' recursive remove directory support
...
Change-Id: Iafecb0a25cc9d091a1aee8f381b217e67d6e3925
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-07-01 14:55:04 -07:00
Xiang Xiao
8e06d060c2
nsh/date: Support -u option
...
user can use both UTC and local time now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-02 11:10:31 +01:00
RoCorbera
42f4565129
nsh kill cmd can be executed with no signal option.
...
SIGTERM is the default signal, as in unix kill command.
nsh> kill [-<signal>] <pid>
2021-06-01 15:57:13 -03:00
Xiang Xiao
98de0d6a68
nsh: Add debug.h inclusion in nsh_command.c
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-24 16:05:07 +09:00
Xiang Xiao
ecae66fe59
Replace all CONFIG_NFILE_STREAMS with CONFIG_FILE_STREAM
...
follow up the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic27ad65d7cc2ea570921e0c17098dcb6bfe1893a
2020-09-11 17:57:58 +08:00
spiriou
06c7f06b1d
nshlib: remove NSH_HAVE_WRITABLE_MOUNTPOINT to enable mkrd again
2020-08-23 11:38:08 -07:00
Xiang Xiao
d307758c3c
nshlib: Rename 'sh' command to 'source' command
...
since this command change the parent environment variable and
add new '.' command which has the same functionality as 'source'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-19 08:07:06 -06:00
chao.an
9968461c2b
nsh/command: do not show the module application in built-in list
...
Change-Id: Ia6dd5dcf7d7eb829fde67c522f7ee2155a4051ce
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 15:59:45 +09:00
Xiang Xiao
8da81578b0
nsh: Call getaddrinfo in cmd_nslookup to support the dual stack host
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iac7a9a6b871d473e4720db1d6cbfeea3dc9796a0
2020-03-30 09:43:49 -06:00
Gregory Nutt
1a9444a68b
Remove support for CONFIG_FS_WRITABLE and CONFIG_FS_READABLE
2020-03-22 08:23:28 -05:00
YAMAMOTO Takashi
e1d9e82273
nshlib: Fix a few strange whitespace in command help text
2020-03-18 00:39:17 -05:00
YAMAMOTO Takashi
2b47187a83
nsh_command.c: Appease nxstyle complaints
2020-03-17 21:45:37 -06:00
Xiang Xiao
5f273b2c5c
nshlib: cmd_nfsmount support the mount with TCP protocol
...
And make TCP as the default like Linux
2020-02-27 12:53:54 -06:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:41:36 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
ligd
42aaecf1d1
apps/nshlib: Add new NSH command, 'pmconfig'.
2019-11-04 07:44:33 -06:00
Gregory Nutt
b65c3dac0e
netutils/netlib/netlib_getarptab.c: Misc fixes from initial testing with the 'arp -t' commeand.
2019-11-03 19:29:20 -06:00
Gregory Nutt
400995dec6
nshlib/nsh_netcmds.c: Add a -t option to the arp command which will enable printing the entire ARP table.
2019-11-03 16:19:14 -06:00
Gregory Nutt
c3dd0b9c06
apps/nshlib/README.txt: Update to include the new rptun command.
2019-11-03 09:44:02 -06:00
ligd
611bc6c139
apps/nshlib: Add rptun cmd for boot remote core.
2019-11-03 09:36:49 -06:00
Gregory Nutt
ac61c18fcc
Move apps/builtins/builtin_forindex.c to nuttx/libs/libc/builtin since it is required by kernel logic as well. Other changes account for movement of builtin.h from nuttx/include/nuttx/binfmt/built.h to nuttx/include/lib/builtin.h.
2019-08-23 09:12:45 -06:00
Gregory Nutt
8f5944c4a8
Squashed commit of the following:
...
include/ and netutils/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
nshlib/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
system/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
testing/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
examples/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
2019-04-29 14:53:38 -06:00
Gregory Nutt
9db029e318
The file system can no longer be disabled. Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS==0
2019-02-11 13:10:10 -06:00
Gregory Nutt
eaec674e7b
apps/nshlib/nsh_command.c: In all multi-column help output, make the number of rows presented dependent upon the maximum width of the widest column.
2019-01-11 09:21:59 -06:00
Gregory Nutt
d789194836
apps/nshlib/nsh_command.c: In all multi-column help output, calculate an optimal column width rather than using a hard-coded width that may or may not be appropriate.
2019-01-11 08:59:36 -06:00
Gregory Nutt
806ba4ee83
apps/nshlib/nsh_command.c: Fix a few long lines
2019-01-11 07:39:23 -06:00
Ken Pettit
a6d056cf76
apps/nshlib/nsh_command.c: display built-in apps using multi-column mode like the nsh commands
2019-01-11 07:35:04 -06:00
GregoryN
3bf4b6d245
Merged altconsole into master
2018-12-08 18:53:54 -06:00
Gregory Nutt
cf6c6a9556
apps/nshlib: If CONFIG_NSH_VARS=y, the NSH 'set' command with not argument will list all of the local NSH variables.
2018-10-02 11:54:18 -06:00
Gregory Nutt
e9edfd064f
apps/nshlib: Add support for NSH local variables if CONFIG_NSH_VARS are set. These are like environment variables but are local to NSH. The importance of this is that these variables are *not* inherited when NSH creates a new task. The new command 'export' was added. In this case, the NSH variable will be promoted to an environment variable and will then be inherited by any tasks executed by NSH.
2018-10-01 13:30:25 -06:00
Gregory Nutt
14a262001d
apps/nshlib: Add support for the 'env' command.
2018-09-30 10:55:23 -06:00
Eunbong Song
2985d3f42b
apps/nshlib: Correct maximum number of arguments that can be provided to the mksmartfs command.
2018-09-18 07:24:24 -06:00
ligd
bee98898f0
apps/nshlib: Expand reboot and poweroff commands to include a second, optional mode argument
2018-08-23 06:21:47 -06:00
Gregory Nutt
a7f4a9db23
Revert "apps/nshlib/nsh_command.c: Update help text."
...
This reverts commit 0511002543
.
2018-08-11 10:39:48 -06:00
Gregory Nutt
0511002543
apps/nshlib/nsh_command.c: Update help text.
2018-08-11 10:34:57 -06:00
Boris Astardzhiev
2c2fc512d6
nshlib/nsh_fscmds.c: Add the -r option which can be used to specify the number of entries in the FAT12/FAT16 root directory.
2018-05-11 09:50:54 -06:00
Gregory Nutt
661718ee19
apps/nshlib: Add irqinfo command.
2018-01-12 17:58:44 -06:00
Masayuki Ishikawa
8ecf618a4d
apps/nshlib: Add support for '-n' option to the echo command.
2018-01-10 07:26:20 -06:00