oh ffs...

This commit is contained in:
Florian Nücke 2014-06-09 17:07:14 +02:00
parent 3fdea0e2f0
commit 9eb445b4aa
2 changed files with 3 additions and 3 deletions

View File

@ -40,14 +40,14 @@ repeat
until choice
choice = candidates[choice]
local cp = loadfile(shell.resolve("cp", "lua"))
local cp = loadfile(shell.resolve("cp", "lua"))
print("Installing OpenOS to device " .. choice.address)
local boot = "/mnt/" .. computer.getBootAddress():sub(1, 3) .. "/"
local mnt = "/mnt/" .. choice.address:sub(1, 3) .. "/"
local function install(what, path)
print("Installing " .. what .. "...")
local result, reason = pcall(cp, "-vf", boot .. path, mnt)
local result, reason = pcall(cp, "-vf", boot .. path, mnt)
if not result then
error(reason, 0)
end

View File

@ -81,7 +81,7 @@ abstract class GraphicsCard extends component.ManagedComponent {
screen(s => {
val oldValue = s.getBackgroundColor
val (oldColor, oldIndex) =
if (s.isBackroundFromPalette) {
if (s.isBackgroundFromPalette) {
(s.getPaletteColor(oldValue), oldValue)
}
else {