biosdevname/udev-rule-path.patch

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