Add Supplements for Raspberry Pi 3 (bsc#1041823) and clean up compatible handling OBS-URL: https://build.opensuse.org/request/show/503085 OBS-URL: https://build.opensuse.org/package/show/hardware/bcm43xx-firmware?expand=0&rev=13
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
if [[ -e /sys/firmware/devicetree/base/compatible ]]; then
|
|
while IFS= read -r -d '' compatible; do
|
|
case "$compatible" in
|
|
lemaker,bananapro)
|
|
ln -sf brcmfmac43362-sdio-bananapi-m1+.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
|
;;
|
|
sinovoip,bpi-m2)
|
|
ln -sf brcmfmac43362-sdio-bananapi-m2.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
|
;;
|
|
cubietech,cubietruck)
|
|
ln -sf brcmfmac43362-sdio-cubietruck.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
|
;;
|
|
solidrun,cubox-i)
|
|
ln -sf brcmfmac4329-sdio-cubox-i.txt /lib/firmware/brcm/brcmfmac4329-sdio.txt
|
|
ln -sf brcmfmac4330-sdio-cubox-i.txt /lib/firmware/brcm/brcmfmac4330-sdio.txt
|
|
;;
|
|
raspberrypi,3-model-b)
|
|
ln -sf brcmfmac43430-sdio-raspberrypi3b.txt /lib/firmware/brcm/brcmfmac43430-sdio.txt
|
|
;;
|
|
tronsmart,vega-s95-telos)
|
|
ln -sf brcmfmac4339-sdio-vega-s95-telos.txt /lib/firmware/brcm/brcmfmac4339-sdio.txt
|
|
;;
|
|
esac
|
|
done < /sys/firmware/devicetree/base/compatible
|
|
fi
|
|
|
|
/usr/sbin/modprobe --ignore-install brcmfmac "$@" || exit $?
|
|
|
|
exit 0
|