better colors

This commit is contained in:
kepler155c@gmail.com
2017-09-28 18:52:57 -04:00
parent 2af6f098c8
commit 9cb7180f10
8 changed files with 62 additions and 30 deletions

View File

@@ -10,13 +10,9 @@ local function netUp()
requireInjector(getfenv(1))
local Event = require('event')
local files = fs.list('/sys/network')
for _,file in pairs(files) do
local fn, msg = loadfile('/sys/network/' .. file, getfenv(1))
if fn then
fn()
else
for _,file in pairs(fs.list('sys/network')) do
local fn, msg = Util.run(getfenv(1), 'sys/network/' .. file)
if not fn then
printError(msg)
end
end