Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 50583c5

Browse files
committedMar 23, 2022
1 parent cf7dc8d commit 50583c5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
 

‎rust-ifcfg-devname.spec

+4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ License: GPLv3 and MIT
3131
%files -n %{crate}
3232
%license LICENSE
3333
%doc README.md
34+
3435
%{_bindir}/ifcfg-devname
36+
%{_udevrulesdir}/60-net.rules
3537

3638
%package devel
3739
Summary: %{summary}
@@ -72,6 +74,8 @@ use the "default" feature of the "%{crate}" crate.
7274
%install
7375
%cargo_install
7476

77+
install -m 0755 -d $(DESTDIR)$(libdir)/udev
78+
7579
%if %{with check}
7680
%check
7781
%cargo_test

‎usr/lib/udev/rules.d/60-net.rules

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", PROGRAM="/usr/bin/ifcfg-devname", RESULT=="?*", NAME="$result"

0 commit comments

Comments
 (0)
Please sign in to comment.