]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt-guests: avoid sourcing failure
authorEric Blake <eblake@redhat.com>
Sat, 18 Dec 2010 00:26:03 +0000 (17:26 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 20 Dec 2010 15:56:29 +0000 (08:56 -0700)
* tools/libvirt-guests.init.in (libvirtd): Skip function library
if it is not present.
Suggested by Guido Günther.

tools/libvirt-guests.init.in

index 5dab36b822e1e39b53d0ef647be9f96fb2b2f7cb..e28938d4d5f918539e4c85de9d800cd18f0dc2ef 100644 (file)
@@ -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
 
 URIS=default
 ON_BOOT=start