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
20eed427
Commit
20eed427
authored
Nov 11, 2019
by
Igor Pecovnik
Browse files
Update
parent
9ceb9487
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
20eed427
...
@@ -466,7 +466,7 @@ function other_kernel_version ()
...
@@ -466,7 +466,7 @@ function other_kernel_version ()
TARGET_VERSION_SUB
=
$(
echo
$TARGET_VERSION_DTB
|
cut
-f2
-d
"="
)
TARGET_VERSION_SUB
=
$(
echo
$TARGET_VERSION_DTB
|
cut
-f2
-d
"="
)
[[
-n
$(
apt-cache madison
"
$TARGET_VERSION_PRE
"
|
grep
$TARGET_VERSION_SUB
)
]]
&&
\
[[
-n
$(
apt-cache madison
"
$TARGET_VERSION_PRE
"
|
grep
$TARGET_VERSION_SUB
)
]]
&&
\
PACKAGE_LIST
=
$PACKAGE_LIST
"
$TARGET_VERSION_DTB
linux-u-boot-
${
BOARD
}
-
${
UPGRADE_UBOOT
}
linux-
${
DISTROID
}
-root
${
UPGRADE_ROOT
}
-
${
BOARD
}
"
PACKAGE_LIST
=
$PACKAGE_LIST
"
$TARGET_VERSION_DTB
linux-u-boot-
${
BOARD
}
-
${
UPGRADE_UBOOT
}
"
echo
$PACKAGE_LIST
>
/tmp/switch_kernel.log 2>&1
echo
$PACKAGE_LIST
>
/tmp/switch_kernel.log 2>&1
debconf-apt-progress
--
apt
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_LIST
debconf-apt-progress
--
apt
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_LIST
...
@@ -480,6 +480,8 @@ function other_kernel_version ()
...
@@ -480,6 +480,8 @@ function other_kernel_version ()
find
"/boot/"
-name
"System.map*"
-type
f
-delete
;
find
"/boot/"
-name
"config*"
-type
f
-delete
find
"/boot/"
-name
"System.map*"
-type
f
-delete
;
find
"/boot/"
-name
"config*"
-type
f
-delete
find
"/boot/"
-name
"vmlinuz*"
-type
f
-delete
;
find
"/boot/"
-name
"*nitrd*"
-type
f
-delete
find
"/boot/"
-name
"vmlinuz*"
-type
f
-delete
;
find
"/boot/"
-name
"*nitrd*"
-type
f
-delete
apt clean
apt clean
# BSP must be installed separate otherwise it won't work
debconf-apt-progress
--
apt
-y
-qq
--allow-downgrades
--no-install-recommends
install
linux-
${
DISTROID
}
-root
${
UPGRADE_ROOT
}
-
${
BOARD
}
debconf-apt-progress
--
apt
-y
-qq
--allow-downgrades
--no-install-recommends
install
$PACKAGE_LIST
debconf-apt-progress
--
apt
-y
-qq
--allow-downgrades
--no-install-recommends
install
$PACKAGE_LIST
if
[[
$?
=
0
]]
;
then
reboot
;
fi
if
[[
$?
=
0
]]
;
then
reboot
;
fi
else
else
...
...
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