Avoid error with missing git repo when using rpi-update <hash> for first time

This commit is contained in:
popcornmix
2012-12-18 00:43:32 +00:00
parent 8d3fda88c6
commit 786656bb5a

View File

@@ -94,7 +94,9 @@ function finalise {
cp "${FW_PATH}/arm192_start.elf" "${FW_PATH}/start.elf" cp "${FW_PATH}/arm192_start.elf" "${FW_PATH}/start.elf"
fi fi
ldconfig -r "${ROOT_PATH}" ldconfig -r "${ROOT_PATH}"
eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision" if [[ ${FW_REV} == "" ]]; then
eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision"
fi
sync sync
} }