firmware: support base/kernel hash in opnsense-version; closes #6998

This commit is contained in:
Franco Fichtner 2023-11-10 08:48:52 +01:00
parent 0a3621bb08
commit 2bff035b73

View File

@ -193,6 +193,11 @@ core)
product_arch=$(cat ${VERSION}.arch)
fi
fi
if [ -z "${OUTPUT%%*product_hash*}" ]; then
if [ -z "${product_hash}" -a -f ${VERSION}.hash ]; then
product_hash=$(cat ${VERSION}.hash)
fi
fi
if [ -z "${OUTPUT%%*product_id*}" ]; then
if [ -z "${product_id}" ]; then
# mock ID target, there is no .name file