Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
f6f0273c
Commit
f6f0273c
authored
Nov 15, 2019
by
Igor Pecovnik
Browse files
Bugfix: not showin kernel variants properly
parent
d8f460d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
f6f0273c
...
@@ -407,18 +407,15 @@ function other_kernel_version ()
...
@@ -407,18 +407,15 @@ function other_kernel_version ()
IFS
=
$'
\r\n
'
IFS
=
$'
\r\n
'
GLOBIGNORE
=
'*'
GLOBIGNORE
=
'*'
local
HIDDEN
=
''
local
HIDDEN
=
'
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
)
CURRENT_VERSION
=
$(
echo
$CURRENT_VERSION_TEMP
|
awk
'{print $2}'
)
"="
$(
echo
$CURRENT_VERSION_TEMP
|
awk
'{print $3}'
)
CURRENT_VERSION
=
$(
echo
$CURRENT_VERSION_TEMP
|
awk
'{print $2}'
)
"="
$(
echo
$CURRENT_VERSION_TEMP
|
awk
'{print $3}'
)
# Merge
d
families
# Merge families
and handle exceptions
[[
${
LINUXFAMILY
}
==
cubox
||
${
LINUXFAMILY
}
==
udoo
]]
&&
LINUXFAMILY
=
imx6
[[
${
LINUXFAMILY
}
==
cubox
||
${
LINUXFAMILY
}
==
udoo
]]
&&
LINUXFAMILY
=
imx6
[[
${
LINUXFAMILY
}
==
odroidn2
||
${
LINUXFAMILY
}
==
odroidc2
]]
&&
LINUXFAMILY
=
meson64
[[
${
LINUXFAMILY
}
==
odroidn2
||
${
LINUXFAMILY
}
==
odroidc2
]]
&&
LINUXFAMILY
=
meson64
&&
HIDDEN
=
"legacy"
# 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
...
@@ -434,7 +431,7 @@ function other_kernel_version ()
...
@@ -434,7 +431,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
]
}
"
&&
"
${
LIST
[
$prvi
]
}
"
!=
*${
HIDDEN
}*
]]
;
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment