summaryrefslogtreecommitdiff
path: root/packages/udev/udev_063.bb
blob: 9d64ad33635b9a75e874a4074e368d42cf9c054d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://tmpfs.patch;patch=1 \
           file://noasmlinkage.patch;patch=1 \
           file://flags.patch;patch=1 \
           file://fix-alignment.patch;patch=1 \
           file://tty-symlinks.patch;patch=1"

include udev.inc

PR = "r5"
UDEV_EXTRAS = "extras/scsi_id/ extras/volume_id/ extras/run_directory/"

#FIXME UDEV MIGRATION PLAN:
#FIXME      a) udevd is now a netlink daemon and needs to be started by the init script (ours is way too old)
#FIXME      b) sbin/hotplug should no longer be called by the kernel, i.e. echo "" >/proc/sys/kernel/hotplug
#FIXME done c) until d) happens, udev will emulate hotplugd behaviour (see do_install_append()
#FIXME      d) eventually hotplug should no longer be used at all, all agents shall be converted to udev rules

do_install_append() {
	install -m 0755 extras/run_directory/udev_run_hotplugd ${D}${sbindir}/
	echo RUN+="/sbin/udev_run_hotplugd" >>${D}${sysconfdir}/udev/rules.d/50-udev.rules
}