Commit 24ef6de0 authored by Franco Fichtner's avatar Franco Fichtner

firmware: os-update is going to become opnsense-update

parent 8c5991cb
......@@ -110,7 +110,7 @@ POSSIBILITY OF SUCH DAMAGE.
BootstrapDialog.show({
type:BootstrapDialog.TYPE_WARNING,
title: 'Reboot required',
message: 'This upgrade may require a reboot, when needed the firewall will automatically reboot!',
message: 'The firewall will be rebooted directly after this firmware update.',
buttons: [{
label: 'Ok',
action: function(dialogRef){
......
......@@ -118,7 +118,20 @@ if [ "$pkg_running" == "" ]; then
download_size="none"
fi
upgrade_needs_reboot=`pkg upgrade -nq os-update | grep UPGRADED | wc -l | awk '{print $1;}'`
# 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
# only version change requires reboot
if [ "$(pkg query %v ${LOCAL})" != "$(pkg rquery %v ${REMOTE})" ]; then
upgrade_needs_reboot="1"
fi
# First check if there are new packages that need to be installed
for i in $(cat $tmp_pkg_output_file); do
......
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