On 12/18/2010 06:41 AM, Guido Günther wrote:
On Fri, Dec 17, 2010 at 05:26:52PM -0700, Eric Blake wrote:
> * tools/libvirt-guests.init.in (libvirtd): Skip function library
> if it is not present.
> Suggested by Guido Günther.
> ---
> tools/libvirt-guests.init.in | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/tools/libvirt-guests.init.in b/tools/libvirt-guests.init.in
> index 5dab36b..e28938d 100644
> --- a/tools/libvirt-guests.init.in
> +++ b/tools/libvirt-guests.init.in
> @@ -29,7 +29,8 @@ localstatedir=@localstatedir@
> libvirtd=@sbindir@/libvirtd
>
> # Source function library.
> -. "$sysconfdir"/rc.d/init.d/functions
> +test ! -r "$sysconfdir"/rc.d/init.d/functions ||
> + . "$sysconfdir"/rc.d/init.d/functions
ACK. Thanks!
Likewise, for your review and input. Now pushed.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org