[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH 4/5] Ubuntu: Prefer starting udev by hand, instead of using init script.



On Mon, Dec 21, 2009 at 04:09:10PM +0000, Richard W.M. Jones wrote:
[..snip..] 
> -if [ -x /etc/init.d/udev ]; then
> +if [ -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
> +elif [ -x /etc/init.d/udev ]; then
>    service udev start
>  elif [ -x /sbin/start_udev ] && /sbin/start_udev; then
Shouldn't this be:
 if [ -x /etc/init.d/udev ]; then
 ....
 elif [ -x /sbin/udevd ]; then
 ...
 elif ...

Otherwise we'll start udev by hand even if the init script is there.
Cheers,
 -- Guido


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]