summaryrefslogtreecommitdiff
path: root/personal-pkgs-repo/files/updater.lua
blob: 5c4deaefaa92764d125134d42b55484b6a9aacc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
local board
if model:match('[Oo]mnia') then
	board = "omnia"
elseif model:match('^[Tt]urris$') then
	board = "turris"
else
	DIE("Unsupported board!")
end
local hostname_file = io.open('/proc/sys/kernel/hostname')
local hostname = hostname_file:read()
hostname_file:close()

Repository("personal-pkgs", "https://cynerd.cz/repo/turris3x/" .. board, {
	pubkey = "file:///etc/updater/keys/personal-pkgs.pub",
	ocsp = false
})

-- Core package
Install("personal-pkgs-repo")
Package("personal-pkgs-repo", { replan = "finished" })

-- Shells
Install("shellrc-zsh", "shellrc-ash")

-- VPNs
Install("luci-app-openvpn", "openvpn-openssl")
Install("luci-app-wireguard", "wireguard")

-- Basic additional tools
Install("grep", "coreutils-sha256sum")
Install("iperf", "iperf3")
Install("sysstat", "strace", "gdbserver")

-- Device specific
if hostname == "turris-home" then
	Install("transmission-daemon-openssl")
elseif hostname == "turris-prague" then
	Install("6to4")
end
-- Turtris
local turtris = {
	["0000000B00005F64"] = true,
	["0000000B00007C39"] = true,
	["0000000B00007C65"] = true,
	["0000000B00011807"] = true,
	["0000000B00001C5C"] = true,
	["0000000B0000EDBF"] = true,
	["0000000B0000F17C"] = true,
	["0000000B0000EA2E"] = true,
	["0000000B00005BA7"] = true,
}
if serial == "0000000B0000EB0A" then
	Install("turtetris-master")
elseif turtris[serial] then
	Install("turtetris-slave")
end

-- Sentinel!
Install("sentinel-minipot")