aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux/xbmc.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Linux/xbmc.sh.in')
-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