biosdevname/udev-rule-path.patch

17 lines
725 B
Diff

Index: biosdevname-0.5.0/configure.ac
===================================================================
--- biosdevname-0.5.0.orig/configure.ac
+++ biosdevname-0.5.0/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+
+ 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