]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/LocalFunctions.sh
Merge branch 'vtk8itk5wx3-mingw64' of ssh://git.creatis.insa-lyon.fr/creaToolsTools...
[creaToolsTools.git] / Linux / scripts / LocalFunctions.sh
index 662fbae0d65c126df57ced28728e28c141813ad4..ecc8a8cee852aca26c0a972997c2824bee41d1bc 100644 (file)
@@ -51,7 +51,7 @@ function bigDisplay {
 ###########################################
 function checkDistrib {
     local OS=$1
-    if [ "`checkVal $OS MacOS Fedora Ubuntu Mandriva CentOS`" == "false" ] ; then
+    if [ "`checkVal $OS MacOS Fedora Ubuntu Mandriva CentOS Debian`" == "false" ] ; then
         echo "Operating System not supported: $OS"
         echo "Currently supported system: Fedora Ubuntu MacOS"
         exit 1
@@ -84,6 +84,7 @@ function getDistribVersion {
     elif [ "$DISTRIB" == Fedora  ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/system-release`
     elif [ "$DISTRIB" == Ubuntu  ] ; then OSVersion=`awk 'NR==1{print $2}' /etc/issue`
     elif [ "$DISTRIB" == CentOS  ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/issue`
+    elif [ "$DISTRIB" == Debian  ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/issue`
     else OSVersion="VOID_EED"
     fi
     echo $OSVersion
@@ -97,6 +98,7 @@ function getKernelVersion {
     elif [ "$DISTRIB" == Fedora  ] ; then KernelVersion=$(uname -a | awk '{print $3}')
     elif [ "$DISTRIB" == Ubuntu  ] ; then KernelVersion=$(uname -a | awk '{print $3}')
     elif [ "$DISTRIB" == CentOS  ] ; then KernelVersion=$(uname -a | awk '{print $3}')
+    elif [ "$DISTRIB" == Debian  ] ; then KernelVersion=$(uname -a | awk '{print $3}')
     else KernelVersion="VOID_EED"
     fi
     echo $KernelVersion
@@ -113,6 +115,7 @@ function getDownloadCommand {
     elif [ "$DISTRIB" == Fedora  ] ; then downloadCommand='aria2c -x 16'
     elif [ "$DISTRIB" == CentOs  ] ; then downloadCommand='aria2c -x 16'
     elif [ "$DISTRIB" == Ubuntu  ] ; then downloadCommand=wget
+    elif [ "$DISTRIB" == Debian  ] ; then downloadCommand=wget
     else downloadCommand="VOID_EED"
     fi
     echo $downloadCommand