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
d470abb7
Commit
d470abb7
authored
May 07, 2019
by
Igor Pecovnik
Browse files
Bugfix
parent
fdcf5417
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
d470abb7
...
...
@@ -400,12 +400,10 @@ function other_kernel_version ()
CURRENT_VERSION
=
$(
echo
$CURRENT_VERSION_TEMP
|
awk
'{print $2}'
)
"="
$(
echo
$CURRENT_VERSION_TEMP
|
awk
'{print $3}'
)
# check what is available from the repository
LIST
=(
$(
apt-cache show linux-image
*${
LINUXFAMILY
}
|
grep
-E
"Package:|version:|Version:"
|
sed
-n
-e
's/^.*: //p'
|
sed
's/\.$//g'
)
)
debconf-apt-progress
--
apt-get update
LIST
=(
$(
apt-cache show linux-image
*${
LINUXFAMILY
}
|
grep
-E
"Package:|Version:|version:"
|
grep
-v
"Config-Version"
|
sed
-n
-e
's/^.*: //p'
|
sed
's/\.$//g'
)
)
new_list
=()
#printf '%s\n' "${LIST[@]}"
#read
# create a human readable menu
for
((
n
=
0
;
n<
$((${#
LIST
[@]
}))
;
n++
))
;
do
...
...
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