diff options
| author | Christian Rößler | 2014-02-11 18:05:34 +0100 |
|---|---|---|
| committer | Christian Rößler | 2014-02-11 18:05:34 +0100 |
| commit | 7af4a967ced3c8a791e965dcef1a4be25fb42688 (patch) | |
| tree | 4588199df31b6aabac9bf3ddf7cc0a0105a24def /remote/includes | |
| parent | [kernel] POSSIBLE BREAKER! kernel now per git, -distro switches, added config... (diff) | |
| parent | [printergui] config cleanup (diff) | |
| download | tm-scripts-7af4a967ced3c8a791e965dcef1a4be25fb42688.tar.gz tm-scripts-7af4a967ced3c8a791e965dcef1a4be25fb42688.tar.xz tm-scripts-7af4a967ced3c8a791e965dcef1a4be25fb42688.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/includes')
| -rw-r--r-- | remote/includes/distribution.inc | 1 |
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" |
