mirror of
https://github.com/kepler155c/opus
synced 2025-01-11 16:20: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
|
end
|
||||||
|
|
||||||
local function splitnum(S)
|
local function splitnum(S)
|
||||||
Out=""
|
local Out=""
|
||||||
for l1=1,#S,2 do
|
for l1=1,#S,2 do
|
||||||
l2=(#S-l1)+1
|
local l2=(#S-l1)+1
|
||||||
CNum=tonumber("0x"..sure(string.sub(S,l2-1,l2-1),1) .. sure(string.sub(S,l2,l2),0))
|
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
|
Out=string.char(CNum)..Out
|
||||||
end
|
end
|
||||||
return Out
|
return Out
|
||||||
|
@ -15,10 +15,10 @@ local config = {
|
|||||||
Recent = { },
|
Recent = { },
|
||||||
currentCategory = 'Apps',
|
currentCategory = 'Apps',
|
||||||
}
|
}
|
||||||
local applications = { }
|
|
||||||
|
|
||||||
Config.load('Overview', config)
|
Config.load('Overview', config)
|
||||||
|
|
||||||
|
local applications = { }
|
||||||
|
|
||||||
local function loadApplications()
|
local function loadApplications()
|
||||||
Util.clear(applications)
|
Util.clear(applications)
|
||||||
local apps = fs.list('sys/apps/.overview')
|
local apps = fs.list('sys/apps/.overview')
|
||||||
|
@ -11,7 +11,7 @@ local function netUp()
|
|||||||
local files = fs.list('/sys/network')
|
local files = fs.list('/sys/network')
|
||||||
|
|
||||||
for _,file in pairs(files) do
|
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
|
if fn then
|
||||||
fn()
|
fn()
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user