firmware: this broke too

This commit is contained in:
Franco Fichtner 2025-04-10 12:42:00 +02:00
parent 0e5a5c3ba2
commit 86ffbd88ad
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ sets_upgraded=
upgrade_needs_reboot="0"
product_reboot=$(/usr/local/sbin/pluginctl -g system.firmware.reboot)
if [ -n "${product_reboot}" ]; then
if [ "${product_reboot}" = "1" ]; then
needs_reboot="1"
fi

View File

@ -60,7 +60,7 @@ if [ -n "${LQUERY}" -a -n "${RQUERY}" ]; then
fi
ALWAYS_REBOOT=$(/usr/local/sbin/pluginctl -g system.firmware.reboot)
if [ -n "${ALWAYS_REBOOT}" ]; then
if [ "${ALWAYS_REBOOT}" = "1" ]; then
WANT_REBOOT=0
fi

View File

@ -65,7 +65,7 @@ if opnsense-update ${FORCE} -bk -c; then
fi
fi
if [ -n "${ALWAYS_REBOOT}" ]; then
if [ "${ALWAYS_REBOOT}" = "1" ]; then
if [ "${PKGS_HASH}" != "$(${PKG} query %n-%v 2> /dev/null | sha256)" ]; then
output_reboot
fi