mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-12-22 20:19:23 +08:00
update linux-phicomm-n1 to 5.5.8-3, fix linux-phicomm-n1.install
This commit is contained in:
parent
df08474967
commit
a764835363
2 changed files with 8 additions and 5 deletions
|
@ -8,7 +8,7 @@ _srcname=linux-5.5
|
|||
_kernelname=${pkgbase#linux}
|
||||
_desc="AArch64 kernel for Phicomm N1"
|
||||
pkgver=5.5.8
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
arch=('aarch64')
|
||||
url="http://www.kernel.org/"
|
||||
license=('GPL2')
|
||||
|
|
|
@ -2,12 +2,15 @@ post_upgrade() {
|
|||
if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
|
||||
echo "WARNING: /boot appears to be a separate partition but is not mounted."
|
||||
fi
|
||||
if (( $(vercmp $2 5.5.8-2) < 0 )); then
|
||||
echo '==> Fallback initramfs is not used, so it is being deleted now.'
|
||||
rm -f boot/initramfs-%PKGBASE%-fallback.img
|
||||
if (( $(vercmp $2 5.5.8-3) < 0 )); then
|
||||
echo '==> Fallback initramfs is not used, so it is being deleted now.'
|
||||
echo -n '==> Please DO merge your mkinitcpio preset'
|
||||
echo ' if you have it changed before,'
|
||||
echo '==> otherwise your device will not boot again.'
|
||||
rm -f boot/initramfs-linux-phicomm-n1-fallback.img
|
||||
fi
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
rm -f boot/initramfs-%PKGBASE%.img
|
||||
rm -f boot/initramfs-linux-phicomm-n1.img
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue