remove alternates - add ccemux peripherals upon system startup

This commit is contained in:
kepler155c@gmail.com
2020-06-15 19:55:56 -06:00
parent 27c7d2dd18
commit cd0e6af55f
9 changed files with 57 additions and 32 deletions

View File

@@ -1,20 +1,11 @@
local ccemux = _G.ccemux
local fs = _G.fs
local peripheral = _G.peripheral
local textutils = _G.textutils
if ccemux then
-- add a System setup tab
fs.mount('sys/apps/system/ccemux.lua', 'linkfs', 'packages/ccemux/system/ccemux.lua')
local Config = require('opus.config')
for k,v in pairs(Config.load('ccemux')) do
if not peripheral.getType(k) then
ccemux.attach(k, v.type, v.args)
end
end
_G.kernel.hook('clipboard_copy', function(_, args)
local data = args[1]
if type(data) == 'table' then