aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux
diff options
context:
space:
mode:
authorMarius T <mus.svz@gmail.com>2013-08-09 15:06:39 +0200
committerMarius T <mus.svz@gmail.com>2013-08-09 15:06:39 +0200
commita61679c6c92cedad83a8df470eef4357c54a93d2 (patch)
treea9ec4cf17dd80e416dc9e8b95de57a33af12060b /tools/Linux
parent2f91abde6b7048a06af8df714ca5cf6db0c2fabf (diff)
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
Diffstat (limited to 'tools/Linux')
-rw-r--r--tools/Linux/xbmc.sh.in5
1 files changed, 4 insertions, 1 deletions
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