udev: use /dev if udev_root not defined in init.d script

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Jonathan Liu 2012-07-27 23:51:57 +10:00 committed by Thomas Petazzoni
parent f870c626dc
commit b08fd56ae8

View file

@ -27,7 +27,7 @@ test -r $UDEV_CONFIG || exit 6
case "$1" in
start)
echo -n "Populating $udev_root using udev: "
echo -n "Populating ${udev_root:-/dev} using udev: "
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
$UDEV_BIN -d || (echo "FAIL" && exit 1)
echo "done"