summaryrefslogtreecommitdiff
path: root/personal-pkgs-repo/files/updater.lua
blob: 5cf6d97e563980738a4362f443568b954d78c135 (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
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

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