summaryrefslogtreecommitdiff
path: root/packages/udev/udev.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2005-09-20 14:49:36 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-09-20 14:49:36 +0000
commiteb992319a0a412435289e60b5e666da07133d1f5 (patch)
tree1cee9b6e532cf1c859026c1b740ffb01c4b86285 /packages/udev/udev.inc
parentc838ad939cd52d897390eefb9b578cd654b9e98d (diff)
udev: Rearrange the udev files into a more logical structure. Create copies of the rules we're using rather than the distributed version due to links to external scripts. Add mount.sh which attempts to mount block devices using pmount if available, falling back to mount if not. Fix the --mode switch to mknod in the init script.
Diffstat (limited to 'packages/udev/udev.inc')
-rw-r--r--packages/udev/udev.inc20
1 files changed, 18 insertions, 2 deletions
diff --git a/packages/udev/udev.inc b/packages/udev/udev.inc
index 0b51df4797..9ab17e87f4 100644
--- a/packages/udev/udev.inc
+++ b/packages/udev/udev.inc
@@ -2,6 +2,14 @@ DESCRIPTION = "udev is a program which dynamically creates and removes device no
/dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel."
LICENSE = "GPL"
+SRC_URI += " \
+ file://udev.rules \
+ file://links.conf \
+ file://permissions.rules \
+ file://mount.sh \
+ file://local.rules \
+ file://init"
+
UDEV_DEVFS_RULES ?= "0"
PACKAGES =+ "udev-utils"
@@ -34,9 +42,17 @@ 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
+
+ install -d ${D}${sysconfdir}/udev/rules.d/
+
+ install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
+ install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules
+ install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules
if [ "${UDEV_DEVFS_RULES}" = "1" ]; then
install -m 0644 ${S}/etc/udev/udev.rules.devfs ${D}${sysconfdir}/udev/rules.d/50-udev.rules
fi
- install -d ${D}${sysconfdir}/udev/rules.d/
- install -m 0644 ${S}/etc/udev/debian/permissions.rules ${D}${sysconfdir}/udev/rules.d/
+
+ install -d ${D}${sysconfdir}/udev/scripts/
+
+ install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh
}