Use /bin/sh rather than /bin/bash for determining hard/soft float

See: https://github.com/Hexxeh/rpi-update/issues/153
This commit is contained in:
popcornmix
2014-12-07 14:51:57 +00:00
parent a7513b5aff
commit 82ca97bb2e

View File

@@ -80,7 +80,7 @@ function update_modules {
function update_vc_libs { function update_vc_libs {
echo " *** Updating VideoCore libraries" echo " *** Updating VideoCore libraries"
ELFOUTPUT=$(readelf -a "${ROOT_PATH}/bin/bash") ELFOUTPUT=$(readelf -a "${ROOT_PATH}/bin/sh")
if [ "${ELFOUTPUT}" != "${ELFOUTPUT/VFP_args/}" ]; then if [ "${ELFOUTPUT}" != "${ELFOUTPUT/VFP_args/}" ]; then
echo " *** Using HardFP libraries" echo " *** Using HardFP libraries"
cp -R "${FW_REPOLOCAL}/vc/hardfp/"* "${ROOT_PATH}/" cp -R "${FW_REPOLOCAL}/vc/hardfp/"* "${ROOT_PATH}/"