mirror of
https://github.com/kepler155c/opus
synced 2025-10-10 21:37:43 +00:00
reorganization
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
print('\nStarting Opus..')
|
||||
|
||||
LUA_PATH = '/sys/apis'
|
||||
LUA_PATH = '/sys/apis:/usr/apis'
|
||||
|
||||
local Util = dofile('sys/apis/util.lua')
|
||||
_G.debug = function(...) Util.print(...) end
|
||||
@@ -15,7 +15,7 @@ if not s then
|
||||
end
|
||||
|
||||
-- process fstab
|
||||
local mounts = Util.readFile('sys/etc/fstab')
|
||||
local mounts = Util.readFile('usr/etc/fstab')
|
||||
if mounts then
|
||||
for _,l in ipairs(Util.split(mounts)) do
|
||||
if l:sub(1, 1) ~= '#' then
|
||||
@@ -25,6 +25,8 @@ if mounts then
|
||||
end
|
||||
end
|
||||
|
||||
fs.mount('usr', 'gitfs', 'kepler155c', 'opus-apps', 'develop')
|
||||
|
||||
-- user environment
|
||||
if not fs.exists('usr/apps') then
|
||||
fs.makeDir('usr/apps')
|
||||
|
Reference in New Issue
Block a user