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
Gregory Nutt
7a2aac8876
apps/nshlib: Add support for a truncate command. This will be used to test the new ftruncate file system support.
2018-01-04 12:52:17 -06:00
Gregory Nutt
62f7838c5e
nshlib: Tighten up some conditional logic
2017-10-26 16:07:42 -06:00
Gregory Nutt
3788928cbf
nshlib: df command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/blocks or /proc/fs/usage.
2017-10-26 13:28:37 -06:00
Gregory Nutt
749ea9e881
This commit removes the ping6 command from NSH and replaces it with the apps/system/ping6 built-in command. The NSH ping6 command had to be removed because it violated the portable POSIX OS interface. The apps/system/ping6 command uses the sem-standard IPPROTO_ICMP6 socket interface.
...
Squashed commit of the following:
apps/system ping and ping6: Fix a backward test.
apps/system/ping6: ping6 logic now builds without error.
apps/system/ping and ping6: Minor clean-up to configuration settings.
apps/system/ping6: Minor clean-up to be able to configure CONFIG_SYSTEM_PING6
apps/nshlib: Remove support for ping6 from NSH.
apps/system/ping6: Add IPPROTO_ICMPv6 ping6. Initial commit is simply a clone of the IPPROTO_ICMP ping logic.
Rename CONFIG_NET_ICMPv6_PING to CONFIG_NET_ICMPv6_SOCKET.
2017-10-24 11:19:41 -06:00
Gregory Nutt
c1ec7db8a9
This commite eliminates the ping command from NSH and replaces it with a ping 'built-in' at apps/system/ping. The original NSH version of ping violated the portable POSIX interface and, hence, had to be removed. The new system/ping command uses the new IPPROTO_ICMP AF_INET datagram sockets to implement ping.
...
Squashed commit of the following:
apps/system/ping: Fix some timing issues.
apps/system/ping: A few timing related corrections.
apps/nshlib: Remove support for the NSH 'ping' command. The implementation of that command violated the portable POSIX interface and has been replaced with a ping 'built-in' command at apps/system/ping.
apps/system/ping: Add larger payload. Verify content of echoed payload.
apps/system/ping: Various fixes for a clean compile
system/ping: Add new build structure for system ping command.
2017-10-23 08:50:01 -06:00
Gregory Nutt
35ec1b9244
Squashed commit of the following:
...
apps/fsutils/mkfatfs: New user-space fatfs appears to work fine.
apps/fsutils/mkfatfs: Move mkfatfs from the OS to here. Not fully integrated on the intial commit.
2017-10-20 12:35:19 -06:00
Gregory Nutt
7a7c7ee93a
Update README and fix some conditional compilation from the last commit.
2017-08-11 15:56:53 -06:00
Gregory Nutt
5dcf5620e3
NSH Library: Add a route command that will dump the content of routing table.
2017-08-11 15:33:26 -06:00
Gregory Nutt
52e4da1e41
NSH addroute and delroute: All expression of the netmask in IPv4 CIDR or IPv6 slash notation. This really reduces the pain of using the commands, especially for IPv6.
2017-08-10 10:30:20 -06:00
Masayuki Ishikawa
ef04aeaead
NSH library: Fix build break in nsh_command.c with IPv4/IPv6 dual stack.
2017-07-04 10:13:26 +09:00
Gregory Nutt
d81d9c419b
Eliminat a warning when both Ethernet and 6LoWPAN are enabled; improve some naming.
2017-07-02 11:28:12 -06:00
Gregory Nutt
28415d662b
netutils/telnetd and users of telnetd: Add support for IPv6.
2017-06-27 09:14:13 -06:00
Gregory Nutt
342de81641
NSH library: Add a Telnetd command. This is needed when network initialization is deferred. In that case, telnet daemon cannot be started until the network is finally initialized. The telnetd command was added just for that case: So that the telnet daemon can be started from the NSH command line after the network is configured.
2017-06-26 18:00:13 -06:00
David Sidrane
d03aa9112e
Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]
...
Set the 'exit on error control' and/or 'print a trace' of commands when parsing scripts in NSH. The settinngs are in effect from the point of exection, until they are changed again, or in the case of the init script, the settings are returned to the default settings when it exits.
Included child scripts will run with the parents settings and changes made in the child script will effect the parent on return.
Use 'set -e' to enable and 'set +e' to disable (ignore) the exit condition on commands. The default is -e. Errors cause script to exit.
Use 'set -x' to enable and 'set +x' to disable (silence) printing a trace of the script commands as they are ececuted. The default is +x. No printing of a trace of script commands as they are executed.
2017-04-05 18:25:59 -06:00
Gregory Nutt
7a0e08c37b
NSH: Add readlink command.
2017-02-05 10:35:11 -06:00
Gregory Nutt
2ac55ec4e7
NSH: Add support for the 'ln' command.
2017-02-02 19:40:59 -06:00
Alan Carvalho de Assis
cdedb412ed
apps/nshlib: Add printf command to NSH, e.g., controlling /dev/userleds from command line: nsh> printf \x01 > /dev/userleds
2016-10-01 07:44:15 -06:00
Gregory Nutt
823b8c3981
FIFO_SIZE vs PIPE_SIZE
2016-08-04 16:25:47 -06:00
Gregory Nutt
e4914622b3
NSH: cmd_mkfifo depend son CONFIG_DEV_PIPE_SIZE > 0
2016-08-04 12:57:02 -06:00
Gregory Nutt
7d517413cb
Things that use mkfifo() and pipe() depend on CONFIG_PIPES
2016-07-20 10:46:05 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
Gregory Nutt
cd741c82cf
apps/include: Move all header files associated with modules in apps/system to apps/include/system
2016-07-01 06:48:22 -06:00
Gregory Nutt
0559581b91
Trivial changes after review of PR
2016-06-27 11:36:34 -06:00
Mateusz Szafoni
d93e8e5c17
Remove references to CONFIG_SYSLOG
2016-06-27 18:39:55 +02:00
Gregory Nutt
b8c8bea22c
Add an 'arp' command to NSH to support access to the OS ARP table
2016-02-08 14:49:05 -06:00
Gregory Nutt
0720f9a357
NSH: Add option to use platform-specific logic to verify login credentials; Add option to add a delay after each failed login attempt
2016-01-22 10:46:19 -06:00
Gregory Nutt
681bfa2605
NSH: Add logic for the case where the passwd file is read-only. ROMFS image needs to be marked as const, or it will end up in RAM.
2016-01-20 13:05:25 -06:00
Gregory Nutt
fe05a8444f
apps/nshlib: Add useradd, userdel, and passwd commends
2016-01-20 09:37:25 -06:00
Gregory Nutt
f09b7e400f
NSH: Add a time command that can be used to time other commands
2015-12-31 09:16:38 -06:00
Gregory Nutt
f0a21d3d48
NSH: Add module commands: insmod, rmmod, and lsmod
2015-12-13 09:55:52 -06:00
Ken Pettit
d82b8a2e23
apps/nshlib: Add a new NSH losmart command. losmart setups up a loop device for the smart MTD driver similar to losetup but with different syntax. From Ket Petit.
2015-11-28 09:05:05 -06:00
Gregory Nutt
92b1eb36c8
nshlib: Move trim_dir() and foreach_direntry() from nsh_fscmds.c to nsh_fsutils.c as nsh_trimdir() and nsh_foreach_direntry(), respectively
2015-11-28 08:29:27 -06:00
Gregory Nutt
a62bf6727f
NSH no long calls losetup() and loteardown() directly. Now it uses /dev/loop and performs these operations using ioctl() calls
2015-11-25 17:55:16 -06:00
Ken Pettit
b34bfb02e1
NSH: Extend mount command to include mount options argument. From Ken Petit
2015-11-25 08:49:29 -06:00