summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
-rw-r--r--rule_generator/write_cd_rules.in (renamed from rule_generator/write_cd_rules)4
-rw-r--r--rule_generator/write_net_rules.in (renamed from rule_generator/write_net_rules)4
3 files changed, 9 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index c6aaa6a9ac..f8b8cdbead 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,10 +296,10 @@ AC_ARG_WITH([modprobe],
AC_SUBST([MODPROBE], ["${with_modprobe}"])
# ------------------------------------------------------------------------------
-# rule_generator - persistent network and optical device rule generator
+# rule-generator - persistent network and optical device rule generator
# ------------------------------------------------------------------------------
-AC_ARG_ENABLE([rule_generator],
- AS_HELP_STRING([--enable-rule_generator], [enable persistent network, cdrom support]),
+AC_ARG_ENABLE([rule-generator],
+ AS_HELP_STRING([--enable-rule-generator], [enable legacy persistent network, cdrom support]),
[], [enable_rule_generator=no])
AM_CONDITIONAL([ENABLE_RULE_GENERATOR], [test "x$enable_rule_generator" = xyes])
@@ -318,6 +318,8 @@ AC_CONFIG_FILES([Makefile
man/Makefile
rules/Makefile
rule_generator/Makefile
+ rule_generator/write_cd_rules
+ rule_generator/write_net_rules
src/Makefile
src/accelerometer/Makefile
src/ata_id/Makefile
diff --git a/rule_generator/write_cd_rules b/rule_generator/write_cd_rules.in
index 00382ada2f..2b00a32558 100644
--- a/rule_generator/write_cd_rules
+++ b/rule_generator/write_cd_rules.in
@@ -27,9 +27,9 @@ if [ -n "$UDEV_LOG" ]; then
fi
fi
-RULES_FILE="/etc/udev/rules.d/70-persistent-cd.rules"
+RULES_FILE="@udevconfdir@/rules.d/70-persistent-cd.rules"
-. /lib/udev/rule_generator.functions
+. @udevlibexecdir@/rule_generator.functions
find_next_available() {
raw_find_next_available "$(find_all_rules 'SYMLINK\+=' "$1")"
diff --git a/rule_generator/write_net_rules b/rule_generator/write_net_rules.in
index 437979241f..324e97821c 100644
--- a/rule_generator/write_net_rules
+++ b/rule_generator/write_net_rules.in
@@ -38,9 +38,9 @@ if [ -n "$UDEV_LOG" ]; then
fi
fi
-RULES_FILE='/etc/udev/rules.d/70-persistent-net.rules'
+RULES_FILE='@udevconfdir@/rules.d/70-persistent-net.rules'
-. /lib/udev/rule_generator.functions
+. @udevlibexecdir@/rule_generator.functions
interface_name_taken() {
local value="$(find_all_rules 'NAME=' $INTERFACE)"