2013-02-16 15:00:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Setup env variables
|
|
|
|
|
|
|
|
case "$DIST" in
|
|
|
|
fc*)
|
|
|
|
DISTRIBUTION=fedora
|
|
|
|
VERSION=${DIST/fc/}
|
|
|
|
;;
|
2014-07-26 02:31:42 +00:00
|
|
|
wheezy)
|
|
|
|
DISTRIBUTION=debian
|
|
|
|
VERSION=7
|
|
|
|
;;
|
|
|
|
jessie)
|
|
|
|
DISTRIBUTION=debian
|
|
|
|
VERSION=8
|
|
|
|
;;
|
2015-02-10 14:52:42 +00:00
|
|
|
trusty)
|
|
|
|
DISTRIBUTION=qubuntu
|
|
|
|
VERSION=14.04
|
|
|
|
;;
|
|
|
|
utopic)
|
|
|
|
DISTRIBUTION=qubuntu
|
|
|
|
VERSION=14.10
|
|
|
|
;;
|
|
|
|
vivid)
|
|
|
|
DISTRIBUTION=qubuntu
|
|
|
|
VERSION=15.04
|
|
|
|
;;
|
2013-02-16 15:00:50 +00:00
|
|
|
*)
|
|
|
|
DISTRIBUTION="$DIST"
|
|
|
|
VERSION=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -d "scripts_$DIST" ]; then
|
|
|
|
SCRIPTSDIR="scripts_$DIST"
|
|
|
|
else
|
|
|
|
SCRIPTSDIR="scripts_$DISTRIBUTION"
|
|
|
|
fi
|
|
|
|
|
2013-02-16 16:17:42 +00:00
|
|
|
CACHEDIR=cache_$DIST
|
|
|
|
|
|
|
|
export SCRIPTSDIR CACHEDIR
|
2014-07-26 02:30:31 +00:00
|
|
|
echo $DISTRIBUTION $VERSION
|