Dirk Mueller
ce7e3eeb79
- Use correct directory for udev rules OBS-URL: https://build.opensuse.org/request/show/172844 OBS-URL: https://build.opensuse.org/package/show/Base:System/biosdevname?expand=0&rev=15
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
Index: biosdevname-0.4.1/configure.ac
|
|
===================================================================
|
|
--- biosdevname-0.4.1.orig/configure.ac
|
|
+++ biosdevname-0.4.1/configure.ac
|
|
@@ -70,7 +70,10 @@ AC_CHECK_FUNCS([dup2 gettimeofday memset
|
|
# handles default udev rules as of udev 114 or thereabouts
|
|
RULEDEST=/lib/udev/rules.d/71-biosdevname.rules
|
|
|
|
-if [[ -e /etc/udev/rules.d/60-net.rules ]]; then
|
|
+if [[ -e /usr/lib/udev/rules.d/99-systemd.rules ]]; then
|
|
+ # openSUSE 12.3+
|
|
+ RULESDEST=/usr/lib/udev/rules.d/71-biosdevname.rules
|
|
+elif [[ -e /etc/udev/rules.d/60-net.rules ]]; then
|
|
# RHEL 5 / Fedora
|
|
RULEDEST=/etc/udev/rules.d/60-biosdevname.rules
|
|
elif [[ -e /etc/udev/rules.d/31-network.rules ]]; then
|
|
Index: biosdevname-0.4.1/configure
|
|
===================================================================
|
|
--- biosdevname-0.4.1.orig/configure
|
|
+++ biosdevname-0.4.1/configure
|
|
@@ -10473,7 +10473,10 @@ done
|
|
# handles default udev rules as of udev 114 or thereabouts
|
|
RULEDEST=/lib/udev/rules.d/71-biosdevname.rules
|
|
|
|
-if [ -e /etc/udev/rules.d/60-net.rules ]; then
|
|
+if [ -e /usr/lib/udev ]; then
|
|
+ # openSUSE 12.3+
|
|
+ RULEDEST=/usr/lib/udev/rules.d/71-biosdevname.rules
|
|
+elif [ -e /etc/udev/rules.d/60-net.rules ]; then
|
|
# RHEL 5 / Fedora
|
|
RULEDEST=/etc/udev/rules.d/60-biosdevname.rules
|
|
elif [ -e /etc/udev/rules.d/31-network.rules ]; then
|