From 40ebaece9ed5ae10b4bffa49bf1566a8bf1aa153 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 11 Feb 2014 16:17:35 +0100 Subject: [distribution.inc] Added SYS_CODENAME: Ubuntu eg. -> raring, openSuse eg. -> Dartmouth --- remote/includes/distribution.inc | 1 + 1 file changed, 1 insertion(+) 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" -- cgit v1.2.3-55-g7522