Commit d8f460d8 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Add upgrade option for Odroidc2 family and adding an exception for board C2 to...

Add upgrade option for Odroidc2 family and adding an exception for board C2 to not show upgrade option for meson64-legacy which we use only for N2
parent e98d3222
...@@ -407,6 +407,7 @@ function other_kernel_version () ...@@ -407,6 +407,7 @@ function other_kernel_version ()
IFS=$'\r\n' IFS=$'\r\n'
GLOBIGNORE='*' GLOBIGNORE='*'
local HIDDEN=''
# get current kernel information # get current kernel information
CURRENT_VERSION_TEMP=$(dpkg -l | grep '^ii' | grep linux-image) CURRENT_VERSION_TEMP=$(dpkg -l | grep '^ii' | grep linux-image)
...@@ -414,7 +415,10 @@ function other_kernel_version () ...@@ -414,7 +415,10 @@ function other_kernel_version ()
# Merged families # Merged families
[[ ${LINUXFAMILY} == cubox || ${LINUXFAMILY} == udoo ]] && LINUXFAMILY=imx6 [[ ${LINUXFAMILY} == cubox || ${LINUXFAMILY} == udoo ]] && LINUXFAMILY=imx6
[[ ${LINUXFAMILY} == odroidn2 ]] && LINUXFAMILY=meson64 [[ ${LINUXFAMILY} == odroidn2 || ${LINUXFAMILY} == odroidc2 ]] && LINUXFAMILY=meson64
# Handle exceptions
[[ ${BOARD} == odroidc2 ]] && HIDDEN="legacy"
# check what is available from the repository # check what is available from the repository
debconf-apt-progress -- apt-get update debconf-apt-progress -- apt-get update
...@@ -430,7 +434,7 @@ function other_kernel_version () ...@@ -430,7 +434,7 @@ function other_kernel_version ()
drugi=$((3*$m - 2)) drugi=$((3*$m - 2))
tretji=$((3*$m - 1)) tretji=$((3*$m - 1))
[[ -z ${LIST[$prvi]} ]] && break [[ -z ${LIST[$prvi]} ]] && break
if [[ $CURRENT_VERSION != "${LIST[$prvi]}=${LIST[$drugi]}" ]]; then if [[ $CURRENT_VERSION != "${LIST[$prvi]}=${LIST[$drugi]}" && "${LIST[$prvi]}" != *${HIDDEN}* ]]; then
new_list+=( "${LIST[$prvi]}=${LIST[$drugi]}" ) new_list+=( "${LIST[$prvi]}=${LIST[$drugi]}" )
new_list+=( ${LIST[$tretji]} ) new_list+=( ${LIST[$tretji]} )
fi fi
......
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