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