1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-20 18:27:40 +00:00

major directory reorganize

This commit is contained in:
kepler155c@gmail.com
2017-05-20 18:27:26 -04:00
parent 7954c79d66
commit c8147ef9e8
85 changed files with 67 additions and 59 deletions

View File

@@ -68,7 +68,7 @@ function blockDB:seedDB(dir)
return res
end
local f = fs.open(fs.combine(dir, 'blockIds.csv'), "r")
local f = fs.open(fs.combine('sys/etc', 'blockIds.csv'), "r")
if not f then
error('unable to read blockIds.csv')

View File

@@ -3,10 +3,10 @@ local Util = require('util')
local Config = { }
Config.load = function(fname, data)
local filename = '/config/' .. fname
local filename = 'usr/config/' .. fname
if not fs.exists('/config') then
fs.makeDir('/config')
if not fs.exists('usr/config') then
fs.makeDir('usr/config')
end
if not fs.exists(filename) then
@@ -17,7 +17,7 @@ Config.load = function(fname, data)
end
Config.update = function(fname, data)
local filename = '/config/' .. fname
local filename = 'usr/config/' .. fname
Util.writeTable(filename, data)
end

View File

@@ -146,7 +146,7 @@ local function trusted(msg, port)
return true
end
local trustList = Util.readTable('.known_hosts') or { }
local trustList = Util.readTable('usr/.known_hosts') or { }
local pubKey = trustList[msg.shost]
if pubKey then

View File

@@ -202,7 +202,7 @@ function Manager:configure(appName, ...)
textScale = { arg = 't', type = 'number',
desc = 'Text scale' },
}
local defaults = Util.loadTable('/config/' .. appName) or { }
local defaults = Util.loadTable('usr/config/' .. appName) or { }
if not defaults.device then
defaults.device = { }
end
@@ -3321,7 +3321,7 @@ function UI.NftImage:setImage(image)
self.image = image
end
UI:loadTheme('config/ui.theme')
UI:loadTheme('usr/config/ui.theme')
if os.getVersion() >= 1.79 then
UI:loadTheme('sys/etc/ext.theme')
end