|
@ -3,6 +3,7 @@ |
|
|
Minimal functionality to install pull SPM and install itself. |
|
|
Minimal functionality to install pull SPM and install itself. |
|
|
]] |
|
|
]] |
|
|
local component = require("component") |
|
|
local component = require("component") |
|
|
|
|
|
local fs = require("filesystem") |
|
|
local wget = loadfile("/bin/wget.lua") |
|
|
local wget = loadfile("/bin/wget.lua") |
|
|
|
|
|
|
|
|
if not component.isAvailable("internet") then |
|
|
if not component.isAvailable("internet") then |
|
@ -14,7 +15,7 @@ local downloadSrc = "{URL_BASE}/spm/spm.min.lua" |
|
|
local saveLocation = "/tmp/spm.lua" |
|
|
local saveLocation = "/tmp/spm.lua" |
|
|
|
|
|
|
|
|
print("Downloading Temporary SPM") |
|
|
print("Downloading Temporary SPM") |
|
|
wget("-q", downloadSrc, saveLocation) |
|
|
|
|
|
|
|
|
wget("-qf", downloadSrc, saveLocation) |
|
|
|
|
|
|
|
|
local spm = loadfile(saveLocation) |
|
|
local spm = loadfile(saveLocation) |
|
|
|
|
|
|
|
|