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

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 468cc69..27218e2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,7 +35,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 6ba28ae..417606b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -778,7 +778,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