init: Check that start_udev succeeded
authorMatthew Booth <mbooth@redhat.com>
Wed, 21 Oct 2009 09:16:50 +0000 (10:16 +0100)
committerMatthew Booth <mbooth@redhat.com>
Wed, 21 Oct 2009 09:16:50 +0000 (10:16 +0100)
If start_udev fails for any reason, notice and fall through to manual /dev
creation.

Patch from Charles Duffy <charles@dyfis.net>

appliance/init

index 545232c..4e9b66f 100755 (executable)
@@ -9,8 +9,8 @@ mount -t sysfs /sys /sys
 
 if [ -x /etc/init.d/udev ]; then
   /etc/init.d/udev start
-elif [ -x /sbin/start_udev ]; then
-  /sbin/start_udev
+elif [ -x /sbin/start_udev ] && /sbin/start_udev; then
+  :
 else
   echo No udev, creating /dev manually
   mount -t tmpfs none /dev