2013-02-16 15:00:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Setup env variables
|
|
|
|
|
2014-10-24 20:17:29 +00:00
|
|
|
. ./functions.sh > /dev/null
|
|
|
|
|
2013-02-16 15:00:50 +00:00
|
|
|
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
|
|
|
|
;;
|
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
|