added some modules to run nsh and a file at startup \o/

This commit is contained in:
Izaya 2017-07-14 00:01:55 +10:00
parent a70b40d394
commit ab636ef655
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,7 @@
do
local f=io.open("/boot/autoexec.lua")
if f then
pcall(load(f:read("*a")))
f:close()
end
end

3
modules/util/autonsh.lua Normal file
View File

@ -0,0 +1,3 @@
_G.pass = "PASSWORD"
nshd("nsh")
nshds("nshs",pass)