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

View file

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

View file

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