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
6fdfcdb3
Commit
6fdfcdb3
authored
Aug 10, 2020
by
Igor Pecovnik
Browse files
Small improvements
parent
66edefc3
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
6fdfcdb3
...
...
@@ -397,7 +397,7 @@ function reload_bsp(){
PACKAGE_PURGE+
=
" linux-headers*"
fi
debconf-apt-progress
--
apt-get
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_INSTALL
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confold"
--force-yes
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_INSTALL
# if download is ok, remove old packages
if
[[
$?
=
0
]]
;
then
...
...
@@ -505,7 +505,7 @@ function other_kernel_version ()
PACKAGE_LIST
=
$PACKAGE_LIST
"
$TARGET_VERSION_DTB
"
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
-o
Dpkg::Options::
=
"--force-confold"
--force-yes
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_LIST
if
[[
$?
=
0
]]
;
then
dialog
--backtitle
"
$BACKTITLE
"
--title
"Please wait"
--infobox
"
\n
Removing current kernel ..."
5 36
...
...
@@ -518,8 +518,8 @@ function other_kernel_version ()
find
"/boot/"
-name
"vmlinuz*"
-type
f
-delete
;
find
"/boot/"
-name
"*nitrd*"
-type
f
-delete
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
-o
Dpkg::Options::
=
"--force-confold"
--force-yes
-y
-qq
--allow-downgrades
--no-install-recommends
install
linux-
${
DISTROID
}
-root
${
UPGRADE_ROOT
}
-
${
BOARD
}
debconf-apt-progress
--
apt
-o
Dpkg::Options::
=
"--force-confold"
--force-yes
-y
-qq
--allow-downgrades
--no-install-recommends
install
$PACKAGE_LIST
if
[[
$?
=
0
]]
;
then
# update boot loader
[[
-f
/usr/lib/u-boot/platform_install.sh
]]
&&
source
/usr/lib/u-boot/platform_install.sh
...
...
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