###########################################
function getDistribVersion {
- local OS=`uname`
+ local DISTRIB=`getDistrib`
- if [ "$OS" == Darwin ] ; then OSVesion=VOID_Darwin_EED;
- elif [ "$OS" == Linux ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/issue`
+ if [ "$DISTRIB" == MacOS ] ; then OSVesion=VOID_Darwin_EED;
+ elif [ "$DISTRIB" == Fedora ] ; then OSVersion=`awk 'NR==1{print $3}' /etc/issue`
+ elif [ "$DISTRIB" == Ubuntu ] ; then OSVersion=`awk 'NR==1{print $2}' /etc/issue`
else OSVersion="VOID_EED"
fi
echo $OSVersion
}
+###########################################
+function getDownloadCommand {
+ local DISTRIB=`getDistrib`
+
+ if [ "$DISTRIB" == MacOS ] ; then downloadCommand=curl;
+ elif [ "$DISTRIB" == Fedora ] ; then downloadCommand='aria2c -x 16'
+ elif [ "$DISTRIB" == Ubuntu ] ; then downloadCommand=wget
+ else downloadCommand="VOID_EED"
+ fi
+ echo $downloadCommand
+}
+
###########################################
function getncore {
if [ `uname` == Darwin ] ; then # MacOS
# fi
}
+
###########################################
function printconfig {
echo