added msh, the most minimal shell I could implement decently (just a lua prompt), added it to the minimal config, aliased lush to shell in the other versions

This commit is contained in:
Izaya 2017-10-08 01:30:37 +11:00
parent 83a84ea117
commit d736491628
4 changed files with 10 additions and 3 deletions

View File

@ -28,7 +28,8 @@ libwrap sha modules/lib/sha256.lua
modules/net/net-ext.lua
modules/applications/login.lua
modules/applications/genkernel.lua
fwrap luash exec/lush.lua
fwrap lush exec/lush.lua
alias shell lush
fwrap skex exec/skex2.lua
fwrap nshd exec/nshd.lua
fwrap nsh exec/nsh.lua

View File

@ -25,7 +25,8 @@ alias shutil.mv fs.mv
modules/lib/sha256.lua
modules/net/net-ext.lua
modules/applications/login.lua
fwrap luash exec/lush.lua
fwrap lush exec/lush.lua
alias shell lush
modules/applications/genkernel.lua
fwrap skex exec/skex2.lua
fwrap nshd exec/nshd.lua

View File

@ -23,7 +23,7 @@ alias shutil.mv fs.mv
libwrap sha modules/lib/sha256.lua
modules/net/net-ext.lua
modules/applications/login.lua
fwrap luash exec/lush.lua
fwrap shell exec/msh.lua
modules/applications/genkernel.lua
modules/util/fs-automount.lua
modules/setup.lua

5
exec/msh.lua Normal file
View File

@ -0,0 +1,5 @@
while true do
local line = readln()
if not line then break end
print(pcall(load(line)))
end