[Libguestfs] [PATCH] Set DISTRO to SUSE if /etc/SuSE-release exists

Olaf Hering olaf at aepfle.de
Tue Jun 4 14:39:12 UTC 2013


Signed-off-by: Olaf Hering <olaf at aepfle.de>
---

not compile-tested.

 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 71f7b06..2db9593 100644
--- a/configure.ac
+++ b/configure.ac
@@ -519,6 +519,9 @@ fi
 if test -f /etc/arch-release; then
     DISTRO=ARCHLINUX
 fi
+if test -f /etc/SuSE-release; then
+    DISTRO=SUSE
+fi
 AC_MSG_RESULT([$DISTRO])
 AC_SUBST([DISTRO])
 




More information about the Libguestfs mailing list