create_livestick: check for 'mkfs.vfat'

closes #2567
This commit is contained in:
Stefan Saraev 2013-09-07 20:01:12 +03:00
parent 8ed8ff3ca1
commit 00135b3bc6

View File

@ -113,6 +113,21 @@ echo "#########################################################"
exit 1
fi
# this is needed to format the drive
which mkfs.vfat > /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 \"mkfs.vfat\" #"
echo "# on your system. #"
echo "# Please install it via your package manager. #"
echo "# #"
echo "#########################################################"
exit 1
fi
# check MD5 sums
echo "checking MD5 sum..."