From a61679c6c92cedad83a8df470eef4357c54a93d2 Mon Sep 17 00:00:00 2001 From: Marius T Date: Fri, 9 Aug 2013 15:06:39 +0200 Subject: xbmc.sh: read Release info from os-release If /etc/os-release exists, read the info from there instead of relying on lsb_release. see also commit 7a9aa6f5d9ac8df1c79eb06ed63bce8af162c3ba --- tools/Linux/xbmc.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/Linux') diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in index 02ffa0e6b7..8999b44aee 100644 --- a/tools/Linux/xbmc.sh.in +++ b/tools/Linux/xbmc.sh.in @@ -64,7 +64,10 @@ print_crash_report() echo -n " Kernel: " >> $FILE uname -rvs >> $FILE echo -n " Release: " >> $FILE - if which lsb_release > /dev/null; then + if [ -f /etc/os-release ]; then + . /etc/os-release + echo $NAME $VERSION >> $FILE + elif which lsb_release > /dev/null; then echo >> $FILE lsb_release -a 2> /dev/null | sed -e 's/^/ /' >> $FILE else -- cgit v1.2.3