.
This commit is contained in:
parent
e9f8ddf9e6
commit
133ff288b7
@ -2,25 +2,24 @@ local prefix = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/
|
||||
|
||||
local copyList = {
|
||||
[0] = "/brulijam/sync.lua",
|
||||
[1] = "/startup.lua",
|
||||
[2] = "/brulijam/systemlock.lua",
|
||||
[3] = "/brulijam/setLabel.lua",
|
||||
[1] = "/brulijam/systemlock.lua",
|
||||
[2] = "/brulijam/setLabel.lua",
|
||||
|
||||
[4] = "/brulijam/files/oreTable.txt",
|
||||
[3] = "/brulijam/files/oreTable.txt",
|
||||
|
||||
[5] = "/brulijam/lib/aes.lua",
|
||||
[6] = "/brulijam/lib/hash.lua",
|
||||
[7] = "/brulijam/lib/basic.lua",
|
||||
[8] = "/brulijam/lib/networking.lua",
|
||||
[9] = "/brulijam/lib/createNetworkingKey.lua",
|
||||
[4] = "/brulijam/lib/aes.lua",
|
||||
[5] = "/brulijam/lib/hash.lua",
|
||||
[6] = "/brulijam/lib/basic.lua",
|
||||
[7] = "/brulijam/lib/networking.lua",
|
||||
[8] = "/brulijam/lib/createNetworkingKey.lua",
|
||||
|
||||
[10] = "/brulijam/turtle-roomCreator.lua",
|
||||
[11] = "/brulijam/turtle-miner-stupidExcavate.lua",
|
||||
[12] = "/brulijam/turtle-miner-fibo.lua",
|
||||
[13] = "/brulijam/turtle-treeFarmer.lua",
|
||||
[9] = "/brulijam/turtle-roomCreator.lua",
|
||||
[10] = "/brulijam/turtle-miner-stupidExcavate.lua",
|
||||
[11] = "/brulijam/turtle-miner-fibo.lua",
|
||||
[12] = "/brulijam/turtle-treeFarmer.lua",
|
||||
|
||||
[14] = "/brulijam/gps-tower.lua",
|
||||
[15] = "/brulijam/log-receiver.lua",
|
||||
[13] = "/brulijam/gps-tower.lua",
|
||||
[14] = "/brulijam/log-receiver.lua",
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
--you may change these values
|
||||
local repo = "https://git.brulijam.com/brulijam/Computercraft/raw/branch/main/src"
|
||||
local labelPrefix = "SPHEAL"
|
||||
local labelPrefix = "SPHEAL" --would result in names like "SPHEAL-A1BF3L"
|
||||
|
||||
|
||||
---------------------------------
|
||||
@ -10,9 +10,16 @@ local labelPrefix = "SPHEAL"
|
||||
|
||||
|
||||
|
||||
local motd = settings.get("motd.enable")
|
||||
if motd then
|
||||
shell.run("set motd.enable false")
|
||||
os.reboot()
|
||||
end
|
||||
|
||||
print("[BOOTING]")
|
||||
|
||||
|
||||
|
||||
if not (fs.exists("brulijam/config/system.config")) then
|
||||
local systemConfig = {}
|
||||
systemConfig["labelPrefix"] = labelPrefix
|
||||
@ -22,13 +29,6 @@ if not (fs.exists("brulijam/config/system.config")) then
|
||||
end
|
||||
|
||||
|
||||
local motd = settings.get("motd.enable")
|
||||
if motd then
|
||||
shell.run("set motd.enable false")
|
||||
os.reboot()
|
||||
end
|
||||
|
||||
|
||||
--fetch sync script
|
||||
getRequest = http.get(repo .. "/brulijam/sync.lua")
|
||||
file = fs.open("/brulijam/sync.lua", "w")
|
||||
@ -57,6 +57,7 @@ shell.run("/brulijam/sync.lua")
|
||||
--set label if not set
|
||||
shell.run("/brulijam/setLabel.lua")
|
||||
|
||||
|
||||
--create networking key
|
||||
shell.run("/brulijam/lib/createNetworkingKey.lua")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user