lzwfs
This commit is contained in:
18
lzwfs/startup.lua
Normal file
18
lzwfs/startup.lua
Normal 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)
|
||||
Reference in New Issue
Block a user