update: firmware-phicomm-n1

This commit is contained in:
JerryXiao 2019-09-08 00:45:46 +08:00
parent ca83afaada
commit 7867e3255e
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = firmware-phicomm-n1
pkgdesc = Additional firmware for Phicomm N1
pkgver = 6
pkgrel = 8
pkgrel = 9
url = https://github.com/RPi-Distro
install = firmware-phicomm-n1.install
arch = any

View file

@ -4,7 +4,7 @@ buildarch=28
pkgname=firmware-phicomm-n1
pkgver=6
pkgrel=8
pkgrel=9
pkgdesc="Additional firmware for Phicomm N1"
arch=('any')
conflicts=('firmware-raspberrypi')

View file

@ -19,5 +19,5 @@ post_upgrade() {
sed -i "s/^macaddr=.*$/macaddr=${mac}/g" /usr/lib/firmware/brcm/brcmfmac43455-sdio.phicomm,n1.txt
# set bluetooth macaddr
echo -en $(sed 's/^.*:\(..\):\(..\):\(..\)$/\\x\3\\x\2\\x\1/' <<< "$mac") | \
dd of=/usr/lib/firmware/brcm/BCM4345C0.hcd bs=1 seek=$((0x21)) count=3 conv=notrunc
dd of=/usr/lib/firmware/brcm/BCM4345C0.hcd bs=1 seek=$((0x21)) count=3 conv=notrunc status=none
}