kernel-pkgs/update-kernel.sh

This commit is contained in:
Christian Zimmermann 2021-03-28 21:42:56 +02:00
parent 4df08050c4
commit 10fc78d817

12
kernel-pkgs/update-kernel.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
test ${#} -eq 1 || { echo "usage: ${0} <version>" ; exit }
vers=${1}
kernelpkg=linux-armv7-${vers}-armv7h.pkg.tar.xz
headerpkg=linux-armv7-headers-${vers}-armv7h.pkg.tar.xz
sudo cp -vf /boot/zImage /boot/zImage.orig
sudo cp -vf /boot/dtbs/mt7623n-bananapi-bpi-r2.dtb /boot/dtbs/mt7623n-bananapi-bpi-r2.orig.dtb
sudo pacman -U ${kernelpkg} ${headerpkg}