| Name | Last Modified | Size | Type |
|---|---|---|---|
| ../ | - | Directory | |
| OdinTV-RPi4.aarch64-11.1.0.img.gz | 2024-Mar-01 13:02:40 | 133.6M | application/x-gzip |
The below script may be installed on a OdinTV system. This script will auto download the required release image and install it on next reboot.
#!/bin/sh
URL="https://media.theodin.network"
URI="images/releases"
. /etc/os-release
FILE="${NAME}-${LIBREELEC_ARCH}-${VERSION}.img.gz"
CURRENT="`curl -Ls \"${fileURL}/Current.txt\"`"
fileURL="${URL}/${URI}/${VERSION_ID}/${LIBREELEC_DEVICE}"
fileCURRENT="`echo ${CURRENT} |awk '{ print $2 }'`"
cd /storage/.update/
if [ "${FILE}" != "${fileCURRENT}" ]; then
echo "OdinTV update found"
if [ -f /storage/.update/${fileCURRENT} ]; then
echo " - Update already downloaded"
rm -f `ls -t |grep -v ${fileCURRENT}`
echo $CURRENT |sha256sum -cs -
CHECKSUMOK=$?
else
echo " - Downloading update"
rm -f *
curl -Ls "${fileURL}/${fileCURRENT}" -o /storage/.update/${fileCURRENT}
echo $CURRENT |sha256sum -cs -
CHECKSUMOK=$?
fi
if [ ${CHECKSUMOK} == 0 ]; then
echo " - Checksum is Good"
else
ls -lh /storage/.update/
echo " - Checksum is Bad... Deleting bad file."
rm -rf /storage/.update/*
fi
fi