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
523ce78e
Commit
523ce78e
authored
Apr 06, 2020
by
Igor Pecovnik
Browse files
Improve kernel switching
parent
d670838a
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
523ce78e
...
...
@@ -363,13 +363,15 @@ function reload_bsp(){
clear
debconf-apt-progress
--
apt-get update
PACKAGE_LIST
=
"linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
"
# must exits
PACKAGE_LIST
=
"linux-dtb-
${
BRANCH
}
-
${
LINUXFAMILY
}
linux-image-
${
BRANCH
}
-
${
LINUXFAMILY
}
"
# optional
[[
-n
$(
apt-cache search
--names-only
"^linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
"
)
]]
&&
PACKAGE_LIST+
=
" linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
"
[[
-n
$(
apt-cache search
--names-only
"^linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
"
)
]]
&&
PACKAGE_LIST+
=
" linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
"
check_if_installed armbian-
${
DISTROID
}
-desktop
&&
PACKAGE_LIST+
=
" armbian-
${
DISTROID
}
-desktop"
check_if_installed linux-headers-
${
BRANCH
}
-
${
FAMILY
}
&&
PACKAGE_LIST+
=
" linux-headers-
${
BRANCH
}
-
${
FAMILY
}
"
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb-
${
BRANCH
}
-
${
LINUXFAMILY
}
"
)
]]
&&
\
PACKAGE_LIST+
=
" linux-dtb-
${
BRANCH
}
-
${
LINUXFAMILY
}
"
PACKAGE_LIST+
=
" linux-image-
${
BRANCH
}
-
${
LINUXFAMILY
}
"
debconf-apt-progress
--
apt
--download-only
--allow-downgrades
-y
--no-install-recommends
install
$PACKAGE_LIST
armbian-config
# if download is ok, remove old packages
...
...
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