udev: simplify initramfs script and openrc service.

This commit is contained in:
Juan RP 2011-05-29 12:00:06 +02:00
parent bbc2ded144
commit 3cd2c05533
3 changed files with 5 additions and 13 deletions

View File

@ -17,19 +17,12 @@ case "$1" in
esac
# It's all over netlink now
echo > /sys/kernel/uevent_helper
# Start the udev daemon to process events
udevd --daemon --resolve-names=never
# Iterate sysfs and fire off everything; if we include a rule for it then
# it'll get handled; otherwise it'll get handled later when we do this again
# in the main boot sequence.
udevadm trigger --action=add
udevadm settle || true
if [ -d /sys/bus/scsi ]; then
modprobe -q scsi_wait_scan && modprobe -r scsi_wait_scan || true
udevadm settle || true
fi
udevadm trigger --action=add --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle

View File

@ -16,8 +16,6 @@ depend()
start()
{
echo > /proc/sys/kernel/hotplug
[ ! -d /run/udev ] && mkdir -p /run/udev
ebegin "Starting udev and waiting for uevents"

View File

@ -1,6 +1,7 @@
# Template file for 'udev'
pkgname=udev
version=171
revision=1
distfiles="${KERNEL_SITE}/utils/kernel/hotplug/udev-${version}.tar.bz2"
build_style=gnu_configure
configure_args="--exec-prefix= --without-selinux --libexecdir=/lib/udev
@ -9,7 +10,7 @@ configure_args="--exec-prefix= --without-selinux --libexecdir=/lib/udev
short_desc="/dev/ and hotplug management daemon"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
license="GPL"
license="GPL-2"
checksum=fed1e46074c1a16c828193ebd73b3940b7905cc7dcaeb0b3c720d4615210695e
long_desc="
udev is a daemon which dynamically creates and removes device nodes from