mirror of
git://git.yoctoproject.org/poky
synced 2026-08-16 18:29:08 +00:00
Provides the API and modules for a modular initramfs. The currently included modules are: * initramfs-module-debug adds support to dynamic debugging of initramfs using bootparams * initramfs-module-udev: enables udev usage * initramfs-module-mdev: enables mdev usage * initramfs-module-e2fs: adds support for ext4, ext3 and ext2 filesystems (From OE-Core rev: 7b69ad2167a1f0e57db82817b98a0cbcb70a0dd3) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
23 lines
323 B
Bash
23 lines
323 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2011 O.S. Systems Software LTDA.
|
|
# Licensed on MIT
|
|
|
|
udev_enabled() {
|
|
if [ ! -e /sbin/udevd ]; then
|
|
debug "/sbin/udev doesn't exist"
|
|
return 1
|
|
fi
|
|
|
|
return 0
|
|
}
|
|
|
|
udev_run() {
|
|
mkdir -p /run
|
|
|
|
udevd --daemon > /dev/null
|
|
udevadm trigger --action=add
|
|
udevadm settle
|
|
|
|
killall udevd 2>/dev/null
|
|
}
|