also replace the SBINDIR used in the rules file
authorDaniel Mierswa <impulze@impulze.org>
Wed, 11 Feb 2009 07:39:55 +0000 (08:39 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 11 Feb 2009 21:54:57 +0000 (13:54 -0800)
Makefile
udev/regulatory.rules

index 106397d..4079bb0 100644 (file)
--- 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
index e81d802..ef9b5f1 100644 (file)
@@ -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)"