2019-07-07 03:52:29 +00:00
|
|
|
local fs = _G.fs
|
2019-06-28 18:22:03 +00:00
|
|
|
|
2019-07-26 03:04:20 +00:00
|
|
|
local function deleteIfExists(path)
|
|
|
|
if fs.exists(path) then
|
|
|
|
fs.delete(path)
|
|
|
|
print("Deleted outdated file at: "..path)
|
|
|
|
end
|
|
|
|
end
|
2019-07-07 03:52:29 +00:00
|
|
|
-- cleanup outdated files
|
2019-07-26 03:04:20 +00:00
|
|
|
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')
|
2019-12-07 19:04:58 +00:00
|
|
|
deleteIfExists('sys/init/6.tl3.lua')
|
|
|
|
|
|
|
|
-- remove this file
|
|
|
|
deleteIfExists('sys/autorun/upgraded.lua')
|