From 18c54a7a09959277b31c7671d87f94162da116af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Aug 2018 18:15:42 +0200 Subject: Add package personal-pkgs-repo --- personal-pkgs-repo/files/key.pub | 2 ++ personal-pkgs-repo/files/updater.lua | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 personal-pkgs-repo/files/key.pub create mode 100644 personal-pkgs-repo/files/updater.lua (limited to 'personal-pkgs-repo/files') diff --git a/personal-pkgs-repo/files/key.pub b/personal-pkgs-repo/files/key.pub new file mode 100644 index 0000000..de6e53c --- /dev/null +++ b/personal-pkgs-repo/files/key.pub @@ -0,0 +1,2 @@ +untrusted comment: public key 6b76319bf5a9dc2 (personal-pkgs) +RWQGt2MZv1qdwkBd042bjtjJFcI7cEtFtTEf8dqG5uBq3sqD51CC9xl3 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" }) -- cgit v1.2.3