summaryrefslogtreecommitdiff
path: root/personal-pkgs-repo/files/updater.lua
diff options
context:
space:
mode:
Diffstat (limited to 'personal-pkgs-repo/files/updater.lua')
-rw-r--r--personal-pkgs-repo/files/updater.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/personal-pkgs-repo/files/updater.lua b/personal-pkgs-repo/files/updater.lua
new file mode 100644
index 0000000..b84c1a6
--- /dev/null
+++ b/personal-pkgs-repo/files/updater.lua
@@ -0,0 +1,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" })