firmware: ask only once via expansion

We only want to know if there is anything at all and "" + "" is still "".
This commit is contained in:
Franco Fichtner 2018-10-23 06:14:37 +02:00
parent d79950def9
commit 4d16653fc5

View File

@ -268,7 +268,7 @@ if [ "$pkg_running" == "" ]; then
fi
# the main update from package will provide this during upgrade
if [ -n "${pkg_upgraded}" -o -n "${pkg_selected}" ]; then
if [ -n "${pkg_upgraded}${pkg_selected}" ]; then
base_to_reboot=
elif [ -z "$base_to_reboot" ]; then
if opnsense-update -cbf; then
@ -296,7 +296,7 @@ if [ "$pkg_running" == "" ]; then
fi
# the main update from package will provide this during upgrade
if [ -n "${pkg_upgraded}" -o -n "${pkg_selected}" ]; then
if [ -n "${pkg_upgraded}${pkg_selected}" ]; then
kernel_to_reboot=
elif [ -z "$kernel_to_reboot" ]; then
if opnsense-update -cfk; then