local board if model:match('[Oo]mnia') then board = "omnia" elseif model:match('^[Tt]urris$') then board = "turris" else DIE("Unsupported board!") end local hostname_file = io.open('/proc/sys/kernel/hostname') local hostname = hostname_file:read() hostname_file:close() Repository("personal-pkgs", "https://cynerd.cz/repo/turris3x/" .. board, { pubkey = "file:///etc/updater/keys/personal-pkgs.pub", ocsp = false }) -- Core package Install("personal-pkgs-repo") Package("personal-pkgs-repo", { replan = "finished" }) -- Shells Install("shellrc-zsh", "shellrc-ash") -- VPNs Install("luci-app-openvpn", "openvpn-openssl") Install("luci-app-wireguard", "wireguard") -- Basic additional tools Install("grep", "coreutils-sha256sum") Install("iperf", "iperf3") Install("sysstat", "strace", "gdbserver") -- Device specific if hostname == "turris-home" then Install("transmission-daemon-openssl") elseif hostname == "turris-prague" then Install("6to4") end -- Turtris local turtris = { ["0000000B00005F64"] = true, ["0000000B00007C39"] = true, ["0000000B00007C65"] = true, ["0000000B00011807"] = true, ["0000000B00001C5C"] = true, ["0000000B0000EDBF"] = true, ["0000000B0000F17C"] = true, ["0000000B0000EA2E"] = true, ["0000000B00005BA7"] = true, } if serial == "0000000B0000EB0A" then Install("turtetris-master") elseif turtris[serial] then Install("turtetris-slave") end -- Sentinel! Install("sentinel-minipot")