rename driver rules name
This commit is contained in:
parent
793a03fdc4
commit
8abef2620e
@ -1,6 +1,6 @@
|
|||||||
%global pkg dinghai
|
%global pkg dinghai
|
||||||
%define pkg_version 2.24.40.01
|
%define pkg_version 2.24.40.01
|
||||||
%define release 1
|
%define release 2
|
||||||
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
@ -87,9 +87,9 @@ done
|
|||||||
# Add zxdh_en_aux udev conf
|
# Add zxdh_en_aux udev conf
|
||||||
|
|
||||||
%{__install} -d %{buildroot}%{_sysconfdir}/udev/rules.d/
|
%{__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 'ACTION!="add", GOTO="drivers_end"' > %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-dinghai10e_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 '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}-zxdh_en_aux-drivers.rules
|
echo 'LABEL="drivers_end"' >> %{buildroot}%{_sysconfdir}/udev/rules.d/80-%{name}-dinghai10e_en_aux-drivers.rules
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
@ -117,9 +117,12 @@ rm /var/run/rpm-%{pkg}-modules.list
|
|||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
/lib/modules/%{kernel_version}
|
/lib/modules/%{kernel_version}
|
||||||
%config(noreplace) %{_sysconfdir}/depmod.d/%{pkg}.conf
|
%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
|
%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
|
* Mon Dec 23 2024 hcf <han.chengfei@zte.com.cn> - 1:2.24.40.01-1
|
||||||
- init kmod-dinghai driver
|
- init kmod-dinghai driver
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user