Ross Burton fe16cbc6ed initrdscripts: fix udevd in the live boot init scripts
udevd moved location and isn't in $PATH anymore, so use an absolute path to
start it.

The control socket path moved too, so mkdir the directory it's in.

Mounts the new devtmpfs on /dev device tree.

(From OE-Core rev: 543606e5dc379497c34196d004a214e847f5db2d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Alexandru Damian <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-12 22:31:20 +00:00

23 lines
341 B
Bash

#!/bin/sh
# Copyright (C) 2011 O.S. Systems Software LTDA.
# Licensed on MIT
udev_enabled() {
if [ ! -e /lib/udev/udevd ]; then
debug "/lib/udev/udev doesn't exist"
return 1
fi
return 0
}
udev_run() {
mkdir -p /run
/lib/udev/udevd --daemon > /dev/null
udevadm trigger --action=add
udevadm settle
killall udevd 2>/dev/null
}