kernel-pkgs/update-kernel.sh
This commit is contained in:
parent
4df08050c4
commit
10fc78d817
1 changed files with 12 additions and 0 deletions
12
kernel-pkgs/update-kernel.sh
Executable file
12
kernel-pkgs/update-kernel.sh
Executable 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}
|
||||
|
Loading…
Reference in a new issue