From 3313fb986cb00ee8f916a1128e6d6816608c854e Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Tue, 31 Mar 2020 17:23:12 -0600 Subject: [PATCH] minor tweaks --- sys/apps/netdaemon.lua | 2 ++ sys/apps/network/keygen.lua | 2 +- sys/autorun/upgraded.lua | 24 ------------------------ 3 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 sys/autorun/upgraded.lua diff --git a/sys/apps/netdaemon.lua b/sys/apps/netdaemon.lua index 8ffca25..1d3fd66 100644 --- a/sys/apps/netdaemon.lua +++ b/sys/apps/netdaemon.lua @@ -1,3 +1,5 @@ +_G.requireInjector(_ENV) + local Event = require('opus.event') local Util = require('opus.util') diff --git a/sys/apps/network/keygen.lua b/sys/apps/network/keygen.lua index 4a74670..ea2ae40 100644 --- a/sys/apps/network/keygen.lua +++ b/sys/apps/network/keygen.lua @@ -33,7 +33,7 @@ Event.on('generate_keypair', function() table.insert(keyPairs, { generateKeyPair() }) _G._syslog('Generated keypair in ' .. timer()) if #keyPairs >= 3 then - break + break end end end) diff --git a/sys/autorun/upgraded.lua b/sys/autorun/upgraded.lua deleted file mode 100644 index 91bcb5f..0000000 --- a/sys/autorun/upgraded.lua +++ /dev/null @@ -1,24 +0,0 @@ -local fs = _G.fs - -local function deleteIfExists(path) - if fs.exists(path) then - fs.delete(path) - print("Deleted outdated file at: "..path) - end -end --- cleanup outdated files -deleteIfExists('sys/apps/shell') -deleteIfExists('sys/etc/app.db') -deleteIfExists('sys/extensions') -deleteIfExists('sys/network') -deleteIfExists('startup') -deleteIfExists('sys/apps/system/turtle.lua') -deleteIfExists('sys/autorun/gps.lua') -deleteIfExists('sys/autorun/gpshost.lua') -deleteIfExists('sys/apps/network/redserver.lua') -deleteIfExists('sys/apis') -deleteIfExists('sys/autorun/apps.lua') -deleteIfExists('sys/init/6.tl3.lua') - --- remove this file ---deleteIfExists('sys/autorun/upgraded.lua')