Files
opus-apps/lzwfs/.package
kepler155c@gmail.com c873a2e588 tweaks
2019-11-09 23:43:36 -07:00

30 lines
818 B
Plaintext

{
title = 'Disk compression',
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/lzwfs',
description = [[Transparent file compression.
Go to System->Compression to activate]],
license = 'MIT',
install = [[
local Util = require('opus.util')
require('opus.config').load('lzwfs', {
enabled = false,
installed = false,
filters = {
'packages/',
'sys/',
'usr/config/',
}
})
local boot = Util.readTable('.startup.boot')
table.insert(boot.preload, 1, '/packages/lzwfs/startup.lua')
Util.writeTable('.startup.boot', boot)
]],
uninstall = [[
local Array = require('opus.array')
local Util = require('opus.util')
local boot = Util.readTable('.startup.boot')
Array.removeByValue(boot.preload or { }, '/packages/lzwfs/startup.lua')
Util.writeTable('.startup.boot', boot)
]]
}