richard kennedy
2007-06-22 10:24:14 UTC
Hi,
This patch installs the udev rule file if the default rules directory
exists. This should do the right thing in most cases.
BTW -- there's still only a udev rule for the usb card, is it worth
adding rules for the other variants? ( easy to do although I can't test
them! ). Does anyone need or want them ?
Cheers
Richard
Index: etc/Makefile
===================================================================
--- etc/Makefile (revision 1832)
+++ etc/Makefile (working copy)
@@ -65,3 +65,8 @@
rm -f
$(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci; \
rm -f
$(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx; \
fi
+# install any udev rules to default location
+ if [ -d $(TARGET_ROOT_ON_HOST)/etc/udev/rules.d ]; then \
+ cp ./udev/rules.d/*.rules $(TARGET_ROOT_ON_HOST)/etc/udev/rules.d; \
+ fi
+
This patch installs the udev rule file if the default rules directory
exists. This should do the right thing in most cases.
BTW -- there's still only a udev rule for the usb card, is it worth
adding rules for the other variants? ( easy to do although I can't test
them! ). Does anyone need or want them ?
Cheers
Richard
Index: etc/Makefile
===================================================================
--- etc/Makefile (revision 1832)
+++ etc/Makefile (working copy)
@@ -65,3 +65,8 @@
rm -f
$(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_pci; \
rm -f
$(TARGET_ROOT_ON_HOST)/etc/hotplug/pci/prism2_plx; \
fi
+# install any udev rules to default location
+ if [ -d $(TARGET_ROOT_ON_HOST)/etc/udev/rules.d ]; then \
+ cp ./udev/rules.d/*.rules $(TARGET_ROOT_ON_HOST)/etc/udev/rules.d; \
+ fi
+