diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-25 13:05:14 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-25 13:05:14 -0300 |
commit | badfc76a2d8e3f889377edb7abf6c13fb6516284 (patch) | |
tree | fe3e82e3201fb540f2f19e574da6b5c12adb3648 /src/usr/local | |
parent | 92c9d6cccc9ea388feb234ae34ba11c8280d6ae1 (diff) | |
download | pfsense-badfc76a2d8e3f889377edb7abf6c13fb6516284.zip pfsense-badfc76a2d8e3f889377edb7abf6c13fb6516284.tar.gz |
Use compare_version() for kernel_pkg checks
Diffstat (limited to 'src/usr/local')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 01ee0bc..e207d9c 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -134,21 +134,7 @@ upgrade_first_step() { _exit 1 fi - kernel_local=$(pkg query %v ${kernel_pkg}) - - if [ -z "${kernel_local}" ]; then - _echo "ERROR: It was not possible to determine pfSense kernel local version" - _exit 1 - fi - - kernel_remote=$(pkg rquery %v ${kernel_pkg}) - - if [ -z "${kernel_remote}" ]; then - _echo "ERROR: It was not possible to determine pfSense kernel remote version" - _exit 1 - fi - - kernel_version_compare=$(pkg version -t ${kernel_local} ${kernel_remote}) + kernel_version_compare=$(compare_version ${kernel_pkg}) if [ "${kernel_version_compare}" = "<" ]; then kernel_update=1 |