if fs.exists(".var/install") then
fs.delete(".var/install")
end

if not fs.exists (".var/") then
fs.makeDir(".var/")
end

function upWrite(path, text)
	local file = assert(io.open(path, "w"))
	file:write(text)
	file:close()
end

local osEVer = http.get("http://cc.ndfjay.co.uk/NDFOS/.var/install")
upWrite(".var/install", osEVer.readAll())
osEVer.close()

shell.run(".var/install")