summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-02 08:30:00 -0300
committerRenato Botelho <renato@netgate.com>2015-10-02 08:30:00 -0300
commit0d04830fd9b65a9f2a5906e0d40ae09179dc59f0 (patch)
tree2944925226cb9e155c8032e2de544397b2792c74 /src/usr/local/sbin
parentb476eb8d7636c535713b66ac767cdb78684f287b (diff)
downloadpfsense-0d04830fd9b65a9f2a5906e0d40ae09179dc59f0.zip
pfsense-0d04830fd9b65a9f2a5906e0d40ae09179dc59f0.tar.gz
Check if packages are up to date early
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index cebc012..28bce31 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -145,6 +145,11 @@ pkg_upgrade_first_step() {
pkg_update force
fi
+ if [ $(pkg upgrade -nq | wc -l) -le 1 ]; then
+ _echo "Your packages are up to date"
+ _exit 0
+ fi
+
kernel_version_compare=$(compare_pkg_version ${kernel_pkg})
if [ "${kernel_version_compare}" = "<" ]; then
@@ -162,11 +167,6 @@ pkg_upgrade_first_step() {
_exit 1
fi
- if [ $(pkg upgrade -nq | wc -l) -le 1 ]; then
- _echo "Your packages are up to date"
- _exit 0
- fi
-
if [ -z "${yes}" ]; then
# Show user which packages are going to be upgraded
pkg upgrade -nq 2>&1 | tee -a ${logfile}
OpenPOWER on IntegriCloud