X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=inline;f=appliance%2Finit;h=84ee96e3033375936cf09ffbaa94ff963b085b4c;hb=afcb3695b6ce9036f8a531745e254f146507f2a0;hp=b741a497138139322f52bef0357f224a482e0313;hpb=09d7b265e6a0b78592b0a8cc78d9382fd5cb680b;p=libguestfs.git diff --git a/appliance/init b/appliance/init index b741a49..84ee96e 100755 --- a/appliance/init +++ b/appliance/init @@ -8,9 +8,18 @@ mount -t proc /proc /proc mount -t sysfs /sys /sys if [ -x /etc/init.d/udev ]; then - /etc/init.d/udev start + if type service >/dev/null 2>&1; then + service udev start + else + /etc/init.d/udev start + fi elif [ -x /sbin/start_udev ] && /sbin/start_udev; then : +elif [ -x /sbin/udevd ]; then + echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug + /sbin/udevd --daemon + /sbin/udevadm trigger + /sbin/udevadm settle --timeout=10 else echo No udev, creating /dev manually mount -t tmpfs none /dev