mirror of
https://github.com/armbian/config.git
synced 2026-01-06 09:53:35 -08:00
Update
This commit is contained in:
@@ -466,7 +466,7 @@ function other_kernel_version ()
|
||||
TARGET_VERSION_SUB=$(echo $TARGET_VERSION_DTB | cut -f2 -d"=")
|
||||
[[ -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
|
||||
debconf-apt-progress -- apt --download-only --allow-downgrades -y --no-install-recommends install $PACKAGE_LIST
|
||||
|
||||
@@ -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 "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
|
||||
if [[ $? = 0 ]]; then reboot; fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user