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