![]() |
Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
|
Suppose you want to add a new command called XXX. First, create a source file called tenok/user/shell/XXX.c:
The macro is given the name the user types and the function that answers it, so one file can register more than one command.
Next, append the new source file to the tenok/user/shell/shell.mk:
Now, recompile the source code:
Finally, you should able to run your new shell command in the system:
BusyBox is built into the firmware alongside the shell of Tenok. busybox runs an applet by name and busybox sh starts ash:
See BusyBox on Tenok for what is there and what a second process would be needed for.