diff --git a/ccemux/autorun/startup.lua b/ccemux/autorun/startup.lua index a0fe3a9..ca21d16 100644 --- a/ccemux/autorun/startup.lua +++ b/ccemux/autorun/startup.lua @@ -14,4 +14,3 @@ if ccemux then end end end - diff --git a/lzwfs/.package b/lzwfs/.package index 830cedf..bf2b08b 100644 --- a/lzwfs/.package +++ b/lzwfs/.package @@ -3,8 +3,17 @@ repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/lzwfs', description = [[ Disk compression ]], license = 'MIT', - install = [[ + 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) diff --git a/lzwfs/autorun/install.lua b/lzwfs/autorun/install.lua deleted file mode 100644 index 04d79ec..0000000 --- a/lzwfs/autorun/install.lua +++ /dev/null @@ -1,27 +0,0 @@ -local Config = require('opus.config') -local Util = require('opus.util') - -local config = Config.load('lzwfs', { - enabled = false, - installed = false, - filters = { - 'packages/', - 'sys/', - 'usr/config/', - } -}) - -if not config.installed then - -- insert lzwfs into boot startup - local boot = Util.readTable('.startup.boot') - table.insert(boot.preload, 1, '/packages/lzwfs/startup.lua') - --Util.writeTable('.startup.boot', boot) - - -- update config - config.installed = true - --Config.update('lzwfs', config) - - print('Installing lzwfs - rebooting in 3 seconds') - os.sleep(3) - --os.reboot() -end