aboutsummaryrefslogtreecommitdiff
path: root/myrepo/files/updater.lua
diff options
context:
space:
mode:
Diffstat (limited to 'myrepo/files/updater.lua')
-rw-r--r--myrepo/files/updater.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/myrepo/files/updater.lua b/myrepo/files/updater.lua
new file mode 100644
index 0000000..b9946c0
--- /dev/null
+++ b/myrepo/files/updater.lua
@@ -0,0 +1,12 @@
+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"
+})
+
+Install("myrepo")