Commit Graph

90 Commits

Author SHA1 Message Date
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
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
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
Gregory Nutt
b54aa2b081 NSH: Improve an error message 2016-02-08 16:29:54 -06:00
Gregory Nutt
1482732f18 NetLib: Move functions in netlib.c to separate files; improve some naming 2016-02-08 16:09:24 -06: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
fe05a8444f apps/nshlib: Add useradd, userdel, and passwd commends 2016-01-20 09:37:25 -06:00
Gregory Nutt
d5df336821 Trivial update to README 2016-01-01 12:16:19 -06:00
Gregory Nutt
31629ee982 Update README 2016-01-01 09:09:34 -06:00
Gregory Nutt
949b4bd520 Correct a statement in the description of the time command 2015-12-31 10:23:11 -06:00
Gregory Nutt
6c89c01cf5 Fix a scaling error in the new time command 2015-12-31 10:03:04 -06:00
Gregory Nutt
3b3b8faf68 Trivial update to README 2015-12-31 09:19:19 -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
15201642b3 Minor adjustment of spacing 2015-12-13 10:39:13 -06:00
Gregory Nutt
a620f99306 Update README; trivial changes to lsmod output format 2015-12-13 10:30:47 -06:00
Gregory Nutt
f0a21d3d48 NSH: Add module commands: insmod, rmmod, and lsmod 2015-12-13 09:55:52 -06:00
Gregory Nutt
cee429beac Update NSH README. Update ps examples 2015-11-28 17:52:25 -06:00
Gregory Nutt
793f445f54 Update README 2015-11-28 17:28:54 -06:00
Gregory Nutt
fdb4ee7f48 Update README 2015-11-27 17:54:20 -06:00
Gregory Nutt
1150be4a7c Update README 2015-11-25 18:35:23 -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
Gregory Nutt
178c9780a8 NSH: Add support for basename and dirname commands 2015-11-23 10:21:15 -06:00
Gregory Nutt
25d45d642f Add an NSH nslookup command 2015-07-13 11:19:02 -06:00
Gregory Nutt
fa8f6d53e1 Update README 2015-07-05 06:51:39 -06:00
Gregory Nutt
d710b7c3b7 Add support for the NSH uname command 2015-07-04 15:13:11 -06:00
Gregory Nutt
95eea325cf Add poweroff and reboot NSH commands as alternatives to the shutdown command 2015-07-04 12:44:24 -06:00
Gregory Nutt
165637ce27 The NSH shutdown option should be called --reboot, not --reset, for compatibility with the statndard shutdown command 2015-07-04 11:39:44 -06:00
Gregory Nutt
a2a1530694 The NSH shutdown command now supports the --reset option, if available in hardware 2015-07-04 11:11:16 -06:00
Gregory Nutt
a18ed33d99 NSH now supports a shutdown command if CONFIG_BOARDCTL_POWEROFF-y 2015-07-04 08:20:19 -06:00
Gregory Nutt
23075e0b30 Allow NSH date command with no RTC. This command is useful without an RTC too. Also, this permits testing on the simulator which never has an RTC 2015-04-11 12:13:18 -06:00
Gregory Nutt
6bad91308d Rename arch_nshinitialize() to board_app_initialize() 2015-03-31 10:21:31 -06:00
Gregory Nutt
b39fb98d86 apps/nshlib: Add the ping6 command to support checking IPv6 networks. NSH logic is complete but still missing some network level support 2015-01-23 12:49:49 -06:00
Gregory Nutt
fa035373e4 Correct spelling: MOUNTPOINT not MOUNTPOUNT. Numerous places. Some are problems. From Woohan Lee 2014-12-01 06:41:30 -06:00
Gregory Nutt
64b8c1841c Clarify MTU/BUFSIZE in apps/ README.txt files and Documentation 2014-11-16 08:50:36 -06:00
Gregory Nutt
b651f37ce7 Remove CONFIG_DISABLE_CLOCK 2014-08-07 12:35:24 -06:00
Gregory Nutt
ddc799d049 Fix some cloned errors in SAM GPIO interrupt setup 2014-07-07 15:54:37 -06:00
Gregory Nutt
9a49735c4b NSH: Add an option to take stdin from a USB keyboard device 2014-07-03 16:25:02 -06:00
Gregory Nutt
b416696205 Cosmetic changes, updates to README files, updates to some comments 2014-06-30 17:52:59 -06:00
Gregory Nutt
460eb3333c SAMA5D4-EK: NSH confuration now has FAT/ROMFS, /dev/zero, /dev/random via TRNG, an NSH startup script, and a RAM disk at /tmp 2014-06-28 16:11:41 -06:00
Gregory Nutt
7a98f10283 The alternate console device CONFIG_NSH_CONDEV must not be defined unconditionally. This causes errors when using Telnet sessions. This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if enabled, CONFIG_NSH_CONDEV provides the alternative console device name 2014-05-05 08:52:02 -06:00
Gregory Nutt
2bc6d67866 unlink/rm can now be used on nodes in the pseudo-filesystem. There is new configuration option to suppress these costly and mostly useless operations on the pseudo-filesystem 2014-02-20 18:14:02 -06:00
Gregory Nutt
b39f432020 mkdir can now be used to create empty directories in the pseudo-filesystem. 2014-02-19 10:30:50 -06:00
Gregory Nutt
281332cedf Update documentation, mostly related to the command line editor 2014-02-03 10:56:52 -06:00
Gregory Nutt
2b6a1fa186 NSH: More break documentation 2014-01-18 10:26:12 -06:00