Commit f7d9ca0d authored by Franco Fichtner's avatar Franco Fichtner

firmware: remove backwards glue; improve reboot detection

parent 9fe4591d
......@@ -118,22 +118,12 @@ if [ "$pkg_running" == "" ]; then
download_size="none"
fi
# XXX backwards compat
LOCAL=opnsense-update
if pkg query %n os-update > /dev/null; then
LOCAL=os-update
fi
REMOTE=opnsense-update
if pkg rquery %n os-update > /dev/null; then
REMOTE=os-update
fi
LQUERY=$(pkg query %v ${LOCAL})
RQUERY=$(pkg rquery %v ${REMOTE})
# only version change requires reboot
LQUERY=$(pkg query %v opnsense-update)
RQUERY=$(pkg rquery %v opnsense-update)
if [ "${LQUERY%%_*}" != "${RQUERY%%_*}" ]; then
upgrade_needs_reboot="1"
elif opnsense-update -c; then
upgrade_needs_reboot="1"
fi
# First check if there are new packages that need to be installed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment