This commit is contained in:
Julian Brammer 2024-06-08 23:00:33 +02:00
parent 673b920be2
commit c202b7eb9b
3 changed files with 7 additions and 7 deletions

View File

@ -24,13 +24,13 @@ local copyList = {
} }
print("[Syncing start]") print("[SYNC START]")
for i=0, #copyList do for i=0, #copyList do
getRequest = http.get(prefix .. copyList[i]) getRequest = http.get(prefix .. copyList[i])
print("[wget] " .. copyList[i]) print("[WGET] " .. copyList[i])
file = fs.open(copyList[i], "w") file = fs.open(copyList[i], "w")
file.write(getRequest.readAll()) file.write(getRequest.readAll())
file.close() file.close()
end end
print("[Sync end]") print("[SYNC END]")
sleep(1) sleep(1)

View File

@ -12,7 +12,7 @@ local function createPwHash()
local inputConfirmed = false local inputConfirmed = false
while not inputConfirmed do while not inputConfirmed do
basic.clearDisplay() basic.clearDisplay()
print("[Systemlock]") print("[SYSTEMLOCK]")
print("Create a new password.") print("Create a new password.")
print("This will be used to unlock this device.") print("This will be used to unlock this device.")
write("Input: ") write("Input: ")
@ -48,7 +48,7 @@ end
local function inputPrompt() local function inputPrompt()
basic.clearDisplay() basic.clearDisplay()
print("[Systemlock]") print("[SYSTEMLOCK]")
write("Unlock with password: ") write("Unlock with password: ")
inputHash = hash.digestStr(read("*") .. os.getComputerID()) inputHash = hash.digestStr(read("*") .. os.getComputerID())
end end
@ -67,7 +67,7 @@ local function unlockDevice()
if pwCorrect then --correct input if pwCorrect then --correct input
config["locked"] = false config["locked"] = false
setConfig() setConfig()
print("[Unlocked]") print("[UNLOCKED]")
sleep(0.2) sleep(0.2)
basic.clearDisplay() basic.clearDisplay()
print("[" .. os.getComputerLabel() .. "][" .. basic.getCurrentTime() .. "]") print("[" .. os.getComputerLabel() .. "][" .. basic.getCurrentTime() .. "]")

View File

@ -11,7 +11,7 @@ local labelPrefix = "SPHEAL"
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 = {}