Merge branch 'patch-3' of git://github.com/hennr/OpenELEC.tv

Conflicts:
	config/release/create_installstick
This commit is contained in:
Stephan Raue 2011-06-17 06:32:43 +02:00
commit 5b1cab5e3a

View File

@ -56,30 +56,84 @@ echo "# Please read the instructions and use very carefully.. #"
echo "# #" echo "# #"
echo "#########################################################" echo "#########################################################"
md5sumFailed() # check for some required tools
{
clear # this is needed to create a bootloader
echo "#########################################################" which syslinux > /dev/null
echo "# #" if [ "$?" = "1" ]; then
echo "# OpenELEC.tv failed md5 check - Installation will quit #" clear
echo "# #" echo "#########################################################"
echo "# Your original download was probably corrupt. #" echo "# #"
echo "# Please visit www.openelec.tv and get another copy #" echo "# OpenELEC.tv missing tool - Installation will quit #"
echo "# #" echo "# #"
echo "#########################################################" echo "# We can't find the required tool \"syslinux\" #"
exit 1 echo "# on your system. #"
} echo "# Please install it via your package manager. #"
echo "# #"
echo "#########################################################"
exit 1
fi
# this is needed by syslinux
which mcopy > /dev/null
if [ "$?" = "1" ]; then
clear
echo "#########################################################"
echo "# #"
echo "# OpenELEC.tv missing tool - Installation will quit #"
echo "# #"
echo "# We can't find the required tool \"mcopy\" #"
echo "# on your system. #"
echo "# Please install it via your package manager. #"
echo "# NOTE: Some distributions call this package #"
echo "# \"mtools\". #"
echo "# #"
echo "#########################################################"
exit 1
fi
# this is needed to partion the stick
which parted > /dev/null
if [ "$?" = "1" ]; then
clear
echo "#########################################################"
echo "# #"
echo "# OpenELEC.tv missing tool - Installation will quit #"
echo "# #"
echo "# We can't find the required tool \"parted\" #"
echo "# on your system. #"
echo "# Please install it via your package manager. #"
echo "# #"
echo "#########################################################"
exit 1
fi
# check MD5 sums # check MD5 sums
echo "checking MD5 sum..." echo "checking MD5 sum..."
md5sumFailed()
{
clear
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
}
md5sum -c target/KERNEL.md5 md5sum -c target/KERNEL.md5
if [ "$?" = "1" ]; then if [ "$?" = "1" ]; then
md5sumFailed md5sumFailed
fi fi
md5sum -c target/SYSTEM.md5 md5sum -c target/SYSTEM.md5
if [ "$?" = "1" ]; then if [ "$?" = "1" ]; then
md5sumFailed md5sumFailed
fi fi
# (TODO) umount anything # (TODO) umount anything