mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/release: add MD5 check to 'create_installstick'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5f7ab9134f
commit
a10aa9e38a
@ -56,6 +56,25 @@ echo "# Please read the instructions and use very carefully.. #"
|
||||
echo "# #"
|
||||
echo "#########################################################"
|
||||
|
||||
# check MD5 sums
|
||||
echo "checking MD5 sum..."
|
||||
md5sum -c target/KERNEL.md5
|
||||
MD5_ERROR=$?
|
||||
md5sum -c target/SYSTEM.md5
|
||||
MD5_ERROR=$?
|
||||
|
||||
if [ $MD5_ERROR = 1 ]; then
|
||||
echo "#########################################################"
|
||||
echo "# #"
|
||||
echo "# OpenELEC.tv failed md5 check - Installation will quit #"
|
||||
echo "# #"
|
||||
echo "# Your original download was probably corrupt. #"
|
||||
echo "# Please visit www.openelec.tv and get another copy #"
|
||||
echo "# #"
|
||||
echo "#########################################################"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# (TODO) umount anything
|
||||
umount $PART
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user