View difference between Paste ID: 5cDbcrfT and 4zyreNZy
SHOW: | | - or go back to the newest paste.
1-
local response = http and http.get("https://raw.githubusercontent.com/lyqyd/cc-packman/master/packman")
1+
local response = http and http.get("https://pastebin.com/Q03kuCpD")
2
if response then
3
	if not fs.exists("/usr/bin") then fs.makeDir("/usr/bin") end
4
	local handle = io.open("/usr/bin/packman", "w")
5
	if handle then
6
		handle:write(response.readAll())
7
		handle:close()
8
	else
9
		error("Could not write /usr/bin/packman")
10
	end
11
	response.close()
12
else
13
	error("Could not fetch packman")
14
end
15-
shell.run("/usr/bin/packman bootstrap")
15+
shell.run("/usr/bin/packman fetch force install easy-shell")
16-
shell.run("/usr/bin/packman force install easy-shell")
16+
shell.run("packman install nsh vncd nsh-get nsh-put")