Skip to content

Commit

Permalink
firmware: support base/kernel hash in opnsense-version; closes #6998
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Nov 10, 2023
1 parent 0a3621b commit 2bff035
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sbin/opnsense-version
Expand Up @@ -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
Expand Down

0 comments on commit 2bff035

Please sign in to comment.