From: Razvan Becheriu Date: Thu, 1 Aug 2019 08:48:55 +0000 (+0300) Subject: [#766, !449] detect sysrepo version X-Git-Tag: Kea-1.7.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3d80424125d39da63de8792ab9db169eeabcb0d;p=thirdparty%2Fkea.git [#766, !449] detect sysrepo version --- diff --git a/tools/sysrepo_config b/tools/sysrepo_config index fd28a86a46..9f18b54111 100755 --- a/tools/sysrepo_config +++ b/tools/sysrepo_config @@ -78,10 +78,8 @@ if [ "$1" = "--libs" ]; then fi if [ "$1" = "--modversion" ]; then - MAJOR="1" - MINOR="0" - PATCH="0" - echo "${MAJOR}.${MINOR}.${PATCH}" + VERSION=`sysrepoctl -v | tr -s " " | cut -d " " -f 7` + echo "${VERSION}" exit 0 fi