mirror of
https://github.com/kepler155c/opus
synced 2024-12-24 15:40:26 +00:00
web running os
This commit is contained in:
parent
2266cd9873
commit
d1fd211a2b
@ -61,10 +61,10 @@ local function sure(N,n)
|
||||
end
|
||||
|
||||
local function splitnum(S)
|
||||
Out=""
|
||||
local Out=""
|
||||
for l1=1,#S,2 do
|
||||
l2=(#S-l1)+1
|
||||
CNum=tonumber("0x"..sure(string.sub(S,l2-1,l2-1),1) .. sure(string.sub(S,l2,l2),0))
|
||||
local l2=(#S-l1)+1
|
||||
local CNum=tonumber("0x"..sure(string.sub(S,l2-1,l2-1),1) .. sure(string.sub(S,l2,l2),0))
|
||||
Out=string.char(CNum)..Out
|
||||
end
|
||||
return Out
|
||||
|
@ -15,10 +15,10 @@ local config = {
|
||||
Recent = { },
|
||||
currentCategory = 'Apps',
|
||||
}
|
||||
local applications = { }
|
||||
|
||||
Config.load('Overview', config)
|
||||
|
||||
local applications = { }
|
||||
|
||||
local function loadApplications()
|
||||
Util.clear(applications)
|
||||
local apps = fs.list('sys/apps/.overview')
|
||||
|
@ -11,7 +11,7 @@ local function netUp()
|
||||
local files = fs.list('/sys/network')
|
||||
|
||||
for _,file in pairs(files) do
|
||||
local fn, msg = loadfile('/sys/network/' .. file, getfenv())
|
||||
local fn, msg = loadfile('/sys/network/' .. file, getfenv(1))
|
||||
if fn then
|
||||
fn()
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user