aboutsummaryrefslogtreecommitdiff
path: root/myrepo-cert
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-11-02 17:15:37 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-11-02 17:15:37 +0100
commit71b69b460b8f87a99178ffda14ff0c06ec304bbe (patch)
tree9937ad4571e1670033286461c370198da34a5b1e /myrepo-cert
parent529f6328021b5064a20dfbcf7eaceaab92982bdd (diff)
downloadturris-myrepo-71b69b460b8f87a99178ffda14ff0c06ec304bbe.tar.gz
turris-myrepo-71b69b460b8f87a99178ffda14ff0c06ec304bbe.tar.bz2
turris-myrepo-71b69b460b8f87a99178ffda14ff0c06ec304bbe.zip
Fix myrepo updater configuration
Diffstat (limited to 'myrepo-cert')
-rw-r--r--myrepo-cert/Makefile2
-rw-r--r--myrepo-cert/files/updater.lua9
2 files changed, 9 insertions, 2 deletions
diff --git a/myrepo-cert/Makefile b/myrepo-cert/Makefile
index 9c0cba2..c8ce9d6 100644
--- a/myrepo-cert/Makefile
+++ b/myrepo-cert/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=myrepo-cert
-PKG_VERSION:=2
+PKG_VERSION:=3
PKG_MAINTAINER:=Karel Koci
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
diff --git a/myrepo-cert/files/updater.lua b/myrepo-cert/files/updater.lua
index 2f663ab..f68f585 100644
--- a/myrepo-cert/files/updater.lua
+++ b/myrepo-cert/files/updater.lua
@@ -1,3 +1,10 @@
-Script("myrepo", "http://cynerd.cz/myrepo/" .. string.lower(model) .. ".lua", {
+local board
+if model:match('[Oo]mnia') then
+ board = "omnia"
+else
+ board = "turris"
+end
+
+Script("myrepo", "http://cynerd.cz/myrepo/" .. board .. ".lua", {
pubkey = "file:///etc/updater/keys/myrepo.pub"
})