summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-02 08:06:25 -0300
committerRenato Botelho <renato@netgate.com>2015-10-02 08:06:25 -0300
commitf0308648e0e66176a8a960cab6cb0de00ac864fc (patch)
tree2d4029bb12d8ea2d798c3ae773ec3ed59240e08f /src/usr/local/sbin
parent375a1754ef29f404c27d5cad625092a88a1f0232 (diff)
downloadpfsense-f0308648e0e66176a8a960cab6cb0de00ac864fc.zip
pfsense-f0308648e0e66176a8a960cab6cb0de00ac864fc.tar.gz
Only reboot if there are upgrades from core repo
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index 8d6bdf4..becc445 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -248,7 +248,10 @@ pkg_upgrade() {
fi
pkg_upgrade_first_step
- need_reboot=1
+
+ if [ $(pkg upgrade -r ${product}-core -nq | wc -l) -le 1 ]; then
+ need_reboot=1
+ fi
fi
pkg_upgrade_second_step
OpenPOWER on IntegriCloud