summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2014-02-11 16:17:35 +0100
committerChristian Rößler2014-02-11 16:17:35 +0100
commit40ebaece9ed5ae10b4bffa49bf1566a8bf1aa153 (patch)
tree3df3846712cecac4376937c66cecdbd216e3d745
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-40ebaece9ed5ae10b4bffa49bf1566a8bf1aa153.tar.gz
tm-scripts-40ebaece9ed5ae10b4bffa49bf1566a8bf1aa153.tar.xz
tm-scripts-40ebaece9ed5ae10b4bffa49bf1566a8bf1aa153.zip
[distribution.inc] Added SYS_CODENAME: Ubuntu eg. -> raring, openSuse eg. -> Dartmouth
-rw-r--r--remote/includes/distribution.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/remote/includes/distribution.inc b/remote/includes/distribution.inc
index 64190986..7a7be738 100644
--- a/remote/includes/distribution.inc
+++ b/remote/includes/distribution.inc
@@ -28,6 +28,7 @@ detect_distribution () {
esac
# Get version - we mangle this quite a bit. first make sure it has no spaces, then split version at period (.), underscore (_) and dash (-)
SYS_VERSION=$(lsb_release -rs | tolower)
+ SYS_CODENAME=$(lsb_release -c|cut -f 2) # Codename: eg. Ubuntu raring, openSuse: Dartmouth etc.
local VERSION=$(echo $SYS_VERSION | sed -r 's/\s//g;s/[\._]/ /g;s/-//g')
local STRTMP=""
PRINT_SYS_VERSIONS="*.conf.$SYS_DISTRIBUTION"