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 ()
IFS=$'\r\n'
GLOBIGNORE='*'
local HIDDEN=''
# get current kernel information
CURRENT_VERSION_TEMP=$(dpkg -l | grep '^ii' | grep linux-image)
......@@ -414,7 +415,10 @@ function other_kernel_version ()
# Merged families
[[ ${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
debconf-apt-progress -- apt-get update
......@@ -430,7 +434,7 @@ function other_kernel_version ()
drugi=$((3*$m - 2))
tretji=$((3*$m - 1))
[[ -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[$tretji]} )
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