Skip to content

Commit

Permalink
udev: Import 60-net.rules from initscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Oct 16, 2023
1 parent 4b389c4 commit 548e8e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust-ifcfg-devname.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ License: GPL-3.0-or-later and MIT
%files -n %{crate}
%license LICENSE
%doc README.md

%{_bindir}/ifcfg-devname
%{_udevrulesdir}/60-net.rules

%package devel
Summary: %{summary}
Expand Down Expand Up @@ -72,6 +74,8 @@ use the "default" feature of the "%{crate}" crate.
%install
%cargo_install

install -m 0755 -d $(DESTDIR)$(libdir)/udev

%if %{with check}
%check
%cargo_test
Expand Down
1 change: 1 addition & 0 deletions usr/lib/udev/rules.d/60-net.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", PROGRAM="/usr/bin/ifcfg-devname", RESULT=="?*", NAME="$result"

0 comments on commit 548e8e7

Please sign in to comment.