Update sPhone.lua

This commit is contained in:
Ale32bit 2015-11-18 16:56:20 +01:00
parent d517611836
commit 5c578e497e

View file

@ -81,8 +81,7 @@ local function recovery()
elseif k == 5 then
break
elseif k == 6 then
recoverym = {}
recoverym.safemode = true
_G.safemode = true
break
end
end
@ -158,7 +157,7 @@ local function kernel()
for k, v in pairs(fs.list("/.sPhone/autorun")) do
term.setTextColor(colors.black)
if not fs.isDir("/.sPhone/autorun/"..v) then
if not recoverym.safemode then
if not safemode then
local f = fs.open("/.sPhone/autorun/"..v,"r")
local script = f.readAll()
f.close()
@ -180,6 +179,10 @@ local function kernel()
end
end
if safemode then
_G.safemode = nil
end
if runningOnStartup then
fs.open("/startup","r")
end