Module: xenomai-2.4
Branch: master
Commit: ac7db0bf5394e258799c13245ed656b9fc28df72
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=ac7db0bf5394e258799c13245ed656b9fc28df72

Author: Stephen Sinclair <radars...@gmail.com>
Date:   Thu Sep 17 15:54:22 2009 -0400

Copy the udev rules into rules.d if it exists.

---

 Makefile.am |    7 ++++++-
 Makefile.in |    7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index eff8c7d..a668153 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -37,7 +37,12 @@ echo '*** privileges.' ; \
            grep -q Xenomai:`basename $$b .rules` 
$(DESTDIR)/etc/udev/udev.rules || \
            $$sudo sh -c "( echo ; cat $$f ) >> $(DESTDIR)/etc/udev/udev.rules" 
; \
            done ; \
-       fi ; \
+        else if test -d $(DESTDIR)/etc/udev/rules.d ; then \
+              for f in $(srcdir)/ksrc/nucleus/udev/*.rules ; do \
+                 sudo cp $$f $(DESTDIR)/etc/udev/rules.d/ ; \
+              done ; \
+           fi ; \
+        fi ; \
        for n in `seq 0 31` ; do \
            f="$(DESTDIR)/dev/rtp$$n" ; \
            if test \! -c $$f ; then \
diff --git a/Makefile.in b/Makefile.in
index 9ce7eee..9d3bad6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -779,7 +779,12 @@ echo '*** privileges.' ; \
            grep -q Xenomai:`basename $$b .rules` 
$(DESTDIR)/etc/udev/udev.rules || \
            $$sudo sh -c "( echo ; cat $$f ) >> $(DESTDIR)/etc/udev/udev.rules" 
; \
            done ; \
-       fi ; \
+        else if test -d $(DESTDIR)/etc/udev/rules.d ; then \
+              for f in $(srcdir)/ksrc/nucleus/udev/*.rules ; do \
+                 sudo cp $$f $(DESTDIR)/etc/udev/rules.d/ ; \
+              done ; \
+           fi ; \
+        fi ; \
        for n in `seq 0 31` ; do \
            f="$(DESTDIR)/dev/rtp$$n" ; \
            if test \! -c $$f ; then \


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to