udev: use /dev if udev_root not defined in init.d script
authorJonathan Liu <net147@gmail.com>
Fri, 27 Jul 2012 13:51:57 +0000 (23:51 +1000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Jul 2012 19:18:06 +0000 (21:18 +0200)
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/udev/S10udev

index 13dfdf56e3f52d35d693086fc6915d3e7d3222df..7bb430923dcebf8f5eb61f5af3a0a88d38293bf5 100755 (executable)
@@ -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"