Skip to content

Commit

Permalink
Improve kernel switching
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Apr 6, 2020
1 parent d670838 commit 523ce78
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions debian-config-functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 523ce78

Please sign in to comment.