kernel-firmware/uncompressed-post
Takashi Iwai 8109b6df4b - Update to version 20241220 (git commit 9cf329b39cf1):
* cnm: update chips&media wave521c firmware.
  * WHENCE: Add "Info:" tag to text that's clearly not part of the license
  * rtl_nic: add firmware rtl8125bp-2
  * qcom: venus-5.4: update firmware binary for sc7180 and qcs615
  * cirrus: cs35l56: Correct filenames of SSID 17aa3832
  * cirrus: cs35l56: Add and update firmware for various Cirrus CS35L54 and CS35L56 laptops
  * cirrus: cs35l56: Correct SSID order for 103c8d01 103c8d08 10431f43

OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=519
2025-01-01 11:42:39 +00:00

28 lines
847 B
Plaintext

%pre
# ugly workaround for changing qcom/LENOVO/21BX to a symlink (bsc#1204103)
if [ ! -L %{_firmwaredir}/qcom/LENOVO/21BX ]; then
if [ -d %{_firmwaredir}/qcom/LENOVO/21BX ]; then
mv %{_firmwaredir}/qcom/LENOVO/21BX %{_firmwaredir}/qcom/LENOVO/21BX.xxxold
fi
fi
%post
# ugly workaround (bsc#1204103)
if [ -d %{_firmwaredir}/qcom/LENOVO/21BX.xxxold ]; then
mv %{_firmwaredir}/qcom/LENOVO/21BX %{_firmwaredir}/qcom/LENOVO/21BX.xxxnew
mv %{_firmwaredir}/qcom/LENOVO/21BX.xxxold %{_firmwaredir}/qcom/LENOVO/21BX
else
%{?regenerate_initrd_post}
fi
%postun
%{?regenerate_initrd_post}
%posttrans
# ugly workaround (bsc#1204103)
if [ -L %{_firmwaredir}/qcom/LENOVO/21BX.xxxnew ]; then
rm -rf %{_firmwaredir}/qcom/LENOVO/21BX
mv %{_firmwaredir}/qcom/LENOVO/21BX.xxxnew %{_firmwaredir}/qcom/LENOVO/21BX
fi
%{?regenerate_initrd_posttrans}