mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-30 19:09:13 +01:00
22 lines
526 B
Bash
22 lines
526 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -euxo pipefail
|
||
|
|
||
|
hailo_version="4.19.0"
|
||
|
|
||
|
if [[ "${TARGETARCH}" == "amd64" ]]; then
|
||
|
arch="x86_64"
|
||
|
elif [[ "${TARGETARCH}" == "arm64" ]]; then
|
||
|
arch="aarch64"
|
||
|
fi
|
||
|
|
||
|
mkdir -p /rootfs
|
||
|
|
||
|
wget -qO- "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${TARGETARCH}.tar.gz" |
|
||
|
tar -C /rootfs/ -xzf -
|
||
|
|
||
|
mkdir -p /hailo-wheels
|
||
|
|
||
|
wget -P /hailo-wheels/ "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${hailo_version}-cp39-cp39-linux_${arch}.whl"
|
||
|
|