firmware: shift key extract to "-x" option

We need "-K" for deferred kernel install.
This commit is contained in:
Franco Fichtner 2023-06-06 08:44:29 +02:00
parent 38772514fa
commit afcb402aae
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ changelog_url()
URLPREFIX="https://pkg.opnsense.org/${SYS_ABI}/${CORE_ABI}"
if [ -n "$(opnsense-update -K)" ]; then
if [ -n "$(opnsense-update -x)" ]; then
# changelogs differ for business subscriptions
URLPREFIX=$(opnsense-update -M)
fi

View File

@ -87,7 +87,7 @@ echo "***GOT REQUEST TO CHECK FOR UPDATES***" >> ${LOCKFILE}
echo "Currently running $(opnsense-version) at $(date)" >> ${LOCKFILE}
# business subscriptions come with additional license metadata
if [ -n "$(opnsense-update -K)" ]; then
if [ -n "$(opnsense-update -x)" ]; then
echo -n "Fetching subscription information, please wait... " >> ${LOCKFILE}
if fetch -qT 5 -o ${LICENSEFILE} "$(opnsense-update -M)/subscription" >> ${LOCKFILE} 2>&1; then
echo "done" >> ${LOCKFILE}