summaryrefslogtreecommitdiff
path: root/personal-pkgs-repo/files/updater.lua
blob: b84c1a61f8335f003ddfcc647a198f30e7df433d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local board
if model:match('[Oo]mnia') then
	board = "omnia"
if model:match('^[Tt]urris$') then
	board = "turris"
else
	DIE("Unsupported board!")
end

if version_match(turris_version, '<4.0') then
	Repository("personal-pkgs", "https://cynerd.cz/repo/turris3x/" .. board, {
		pubkey = "file:///etc/updater/keys/personal-pkgs.pub",
		ocsp = false
	})
else
	Repository("personal-pkgs", "https://cynerd.cz/repo/openwrt/" .. board, {
		pubkey = "file:///etc/updater/keys/personal-pkgs.pub",
		ocsp = false
	})
end

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