summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/initramfs-framework/udev
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-07 21:23:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-08 15:14:05 +0000
commit7b69ad2167a1f0e57db82817b98a0cbcb70a0dd3 (patch)
treeb5715e5e90ea8174dbfb0646d81bad43609eb2dd /meta/recipes-core/initrdscripts/initramfs-framework/udev
parentc9f714062c1100cedbcb2c16d16656e3f5442133 (diff)
downloadopenembedded-core-contrib-7b69ad2167a1f0e57db82817b98a0cbcb70a0dd3.tar.gz
initramfs-framework: provides a modular initramfs
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 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/udev')
-rw-r--r--meta/recipes-core/initrdscripts/initramfs-framework/udev22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/udev b/meta/recipes-core/initrdscripts/initramfs-framework/udev
new file mode 100644
index 0000000000..9ea8aa3641
--- /dev/null
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/udev
@@ -0,0 +1,22 @@
+#!/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
+}