Skip to content

Commit

Permalink
firmware: fix execution when not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Apr 25, 2023
1 parent 5280cb3 commit 780bb10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/opnsense/scripts/firmware/reboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ RQUERY=$(${PKG} rquery %v ${COREPKG} 2> /dev/null)
# core package is available. We want to use it to display additional
# information in the shell menu including the matching changelog.

if [ -n "${LQUERY}" -a -n "${RQUERY}" -a \
"$(${PKG} version -t ${LQUERY} ${RQUERY})" = "<" ]; then
echo ${RQUERY%%_*}
if [ -n "${LQUERY}" -a -n "${RQUERY}" ]; then
if [ "$(${PKG} version -t ${LQUERY} ${RQUERY})" = "<" ]; then
echo ${RQUERY%%_*}
fi
fi

# success is reboot:
Expand Down

0 comments on commit 780bb10

Please sign in to comment.