summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mierswa <impulze@impulze.org>2009-02-11 08:39:55 +0100
committerLuis R. Rodriguez <lrodriguez@atheros.com>2009-02-11 13:54:57 -0800
commitd596312ab2f60d932b2ac88565a82898fe82d7a9 (patch)
tree88ea3e0330a0d8f299b72bf58898117278dcf636
parent8e7bec8bb9022544fa8c6383f440c06e38a564db (diff)
downloadcrda-d596312ab2f60d932b2ac88565a82898fe82d7a9.tar.gz
crda-d596312ab2f60d932b2ac88565a82898fe82d7a9.tar.bz2
crda-d596312ab2f60d932b2ac88565a82898fe82d7a9.zip
also replace the SBINDIR used in the rules file
-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)"