diff options
author | Phil Blundell <philb@gnu.org> | 2005-06-28 12:41:59 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2005-06-28 12:41:59 +0000 |
commit | daa3be05e66e77bef854b9f4a2ede32178f4c9c8 (patch) | |
tree | 122acb8a6602856019135c054d4ff1d6c371afae /packages/udev/udev.inc | |
parent | d2d99bad03ef2cab1a3584adcef8d1d5709fc45a (diff) |
use devfs rules for udev if requested
BKrev: 42c14597UcFyxmGrj6EMJgiyAAWEmw
Diffstat (limited to 'packages/udev/udev.inc')
-rw-r--r-- | packages/udev/udev.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/udev/udev.inc b/packages/udev/udev.inc index 553988f574..0648034276 100644 --- a/packages/udev/udev.inc +++ b/packages/udev/udev.inc @@ -1,7 +1,9 @@ DESCRIPTION = "udev is a program which dynamically creates and removes device nodes from \ /dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel." LICENSE = "GPL" -PR = "r2" +PR = "r3" + +UDEV_DEVFS_RULES ?= "0" PACKAGES =+ "udev-utils" FILES_udev-utils = "${usrbindir}/udevinfo ${usrbindir}/udevtest" @@ -32,4 +34,7 @@ do_install () { oe_runmake 'DESTDIR=${D}' INSTALL=install install install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev + if [ "${UDEV_DEVFS_RULES}" = "1" ]; then + install -m 0644 ${S}/etc/udev/udev.rules.devfs ${D}${sysconfdir}/udev/rules.d/50-udev.rules + fi } |