rename driver rules name

This commit is contained in:
hcf 2025-02-11 10:39:56 +08:00
parent 793a03fdc4
commit 8abef2620e

View File

@ -1,6 +1,6 @@
%global pkg dinghai
%define pkg_version 2.24.40.01
%define release 1
%define release 2
%global debug_package %{nil}
@ -87,9 +87,9 @@ done
# Add zxdh_en_aux udev conf
%{__install} -d %{buildroot}%{_sysconfdir}/udev/rules.d/
echo 'ACTION!="add", GOTO="drivers_end"' > %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-zxdh_en_aux-drivers.rules
echo 'ENV{MODALIAS}=="zxdh_auxiliary:zxdh_pf.en_aux", RUN{builtin}+="kmod load zxdh_en_aux"' >> %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-zxdh_en_aux-drivers.rules
echo 'LABEL="drivers_end"' >> %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-zxdh_en_aux-drivers.rules
echo 'ACTION!="add", GOTO="drivers_end"' > %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-dinghai10e_en_aux-drivers.rules
echo 'ENV{MODALIAS}=="dinghai10e_auxiliary:dinghai10e.en_aux", RUN{builtin}+="kmod load dinghai10e_en_aux"' >> %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-dinghai10e_en_aux-drivers.rules
echo 'LABEL="drivers_end"' >> %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-dinghai10e_en_aux-drivers.rules
%clean
%{__rm} -rf %{buildroot}
@ -117,9 +117,12 @@ rm /var/run/rpm-%{pkg}-modules.list
%defattr(644,root,root,755)
/lib/modules/%{kernel_version}
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
%{_sysconfdir}/udev/rules.d/80-%{name}-zxdh_en_aux-drivers.rules
%{_sysconfdir}/udev/rules.d/80-%{name}-dinghai10e_en_aux-drivers.rules
%changelog
* Tue Feb 11 2025 hcf <han.chengfei@zte.com.cn> - 1:2.24.40.01-2
- rename driver rules name
* Mon Dec 23 2024 hcf <han.chengfei@zte.com.cn> - 1:2.24.40.01-1
- init kmod-dinghai driver