[Fusionforge-commits] r14419 - in trunk/src: . install

Christian Bayle cbayle at fusionforge.org
Mon Sep 19 01:20:39 CEST 2011


Author: cbayle
Date: 2011-09-19 01:20:39 +0200 (Mon, 19 Sep 2011)
New Revision: 14419

Modified:
   trunk/src/install-ng
   trunk/src/install/detect_os
Log:
add detect_type function


Modified: trunk/src/install/detect_os
===================================================================
--- trunk/src/install/detect_os	2011-09-18 23:19:26 UTC (rev 14418)
+++ trunk/src/install/detect_os	2011-09-18 23:20:39 UTC (rev 14419)
@@ -59,3 +59,20 @@
 	fi
 	echo $os
 }
+
+detect_type()
+{
+	os=$(detect_os)
+	case $os in
+		suse|opensuse)
+			type=suse
+			;;
+		debian|ubuntu|ark)
+			type=debian	
+			;;
+		centos|rhel|redhat_unknown|fedora)
+			type=redhat
+			;;
+	esac
+	echo $type
+}

Modified: trunk/src/install-ng
===================================================================
--- trunk/src/install-ng	2011-09-18 23:19:26 UTC (rev 14418)
+++ trunk/src/install-ng	2011-09-18 23:20:39 UTC (rev 14419)
@@ -69,6 +69,7 @@
 
 # Call to detect_os, this will set $type and $distrib
 os=$(detect_os)
+type=$(detect_type)
 
 if $DEPS || $DEFAULT
 then




More information about the Fusionforge-commits mailing list