This commit is contained in:
kepler155c@gmail.com
2019-11-05 11:18:49 -07:00
parent 61755fb024
commit 636deed29f
6 changed files with 450 additions and 0 deletions

18
lzwfs/startup.lua Normal file
View File

@@ -0,0 +1,18 @@
local fs = _G.fs
local textutils = _G.textutils
local CONFIG = 'usr/config/lzwfs'
local config = { }
if fs.exists(CONFIG) then
local f = fs.open(CONFIG, 'r')
if f then
config = textutils.unserialize(f.readAll())
f.close()
end
end
os.run(_ENV, '/packages/lzwfs/lzwfs.lua')
fs.option('compression', 'filters', config.filters)
fs.option('compression', 'enable', config.enabled)