Patchwork [2/2] udev: use /dev if udev_root not defined in init.d script

login
register
mail settings
Submitter Jonathan Liu
Date July 27, 2012, 1:51 p.m.
Message ID <1343397117-1864-2-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/173675/
State Accepted
Headers show

Comments

Jonathan Liu - July 27, 2012, 1:51 p.m.
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 package/udev/S10udev | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Thomas Petazzoni - July 30, 2012, 8:19 p.m.
Le Fri, 27 Jul 2012 23:51:57 +1000,
Jonathan Liu <net147@gmail.com> a écrit :

> Signed-off-by: Jonathan Liu <net147@gmail.com>

Applied, thanks.

Thomas

Patch

diff --git a/package/udev/S10udev b/package/udev/S10udev
index 13dfdf5..7bb4309 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -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"