summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--udev/regulatory.rules2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 106397d..4079bb0 100644
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,7 @@ install: crda crda.8.gz regdbdump.8.gz
@# putting it in the right place.
$(Q)rm -f $(DESTDIR)/etc/udev/rules.d/regulatory.rules
$(Q)ln -sf regulatory.rules udev/$(UDEV_LEVEL)regulatory.rules
+ $(Q)sed 's:$$(SBINDIR):$(SBINDIR):' -i udev/regulatory.rules
$(Q)$(INSTALL) -m 644 -t \
$(DESTDIR)/$(UDEV_RULE_DIR)/ \
udev/$(UDEV_LEVEL)regulatory.rules
diff --git a/udev/regulatory.rules b/udev/regulatory.rules
index e81d802..ef9b5f1 100644
--- a/udev/regulatory.rules
+++ b/udev/regulatory.rules
@@ -2,4 +2,4 @@
# For more information see:
# http://wireless.kernel.org/en/developers/Regulatory/CRDA
-KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="/sbin/crda"
+KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="$(SBINDIR)"