From bd1c6bdc762406e9d8de900041ebbc8f8331e38e Mon Sep 17 00:00:00 2001
From: Moritz Holtz <moritz.holtz@rwth-aachen.de>
Date: Mon, 4 Apr 2016 15:45:52 +0200
Subject: [PATCH] scripts: made liprepoctl version-independent

---
 scripts/liprepoctl.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/liprepoctl.sh b/scripts/liprepoctl.sh
index ff0a7d8..2ad09e0 100644
--- a/scripts/liprepoctl.sh
+++ b/scripts/liprepoctl.sh
@@ -3,9 +3,10 @@
 ACTION="$1"
 FILENAME="/etc/apt/sources.list.d/lipoffline.list"
 ACTIVATED=`test -e "$FILENAME"`
-DIST_CODENAME="wily"
-DIST_VERSION="15.10"
 
+. /etc/lsb-release
+DIST_CODENAME=$DISTRIB_CODENAME
+DIST_VERSION=$DISTRIB_RELEASE
 
 function install_repo()
 {
-- 
GitLab