Skip to content
This repository
Browse code

Merge pull request #3086 from mus65/xbmc.sh

[Linux] small xbmc.sh crashlog improvements
  • Loading branch information...
commit 57bba0661f814273de23e1b79bfda3931bcc9524 2 parents 276abf9 + 4bf8184
Martijn Kaijser authored August 31, 2013

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  tools/Linux/xbmc.sh.in
8  tools/Linux/xbmc.sh.in
@@ -64,7 +64,10 @@ print_crash_report()
64 64
   echo -n " Kernel: " >> $FILE
65 65
   uname -rvs >> $FILE
66 66
   echo -n " Release: " >> $FILE
67  
-  if which lsb_release > /dev/null; then
  67
+  if [ -f /etc/os-release ]; then
  68
+	  . /etc/os-release
  69
+	  echo $NAME $VERSION >> $FILE
  70
+  elif which lsb_release > /dev/null; then
68 71
     echo >> $FILE
69 72
     lsb_release -a 2> /dev/null | sed -e 's/^/    /' >> $FILE
70 73
   else
@@ -74,6 +77,9 @@ print_crash_report()
74 77
   echo >> $FILE
75 78
   echo "############### STACK TRACE #################" >> $FILE
76 79
   if which gdb >/dev/null 2>&1; then
  80
+    if which systemd-coredumpctl &> /dev/null; then
  81
+      systemd-coredumpctl dump -o core xbmc.bin &> /dev/null
  82
+    fi
77 83
     single_stacktrace "$PWD" 1
78 84
     # Find in plugins directories
79 85
     if [ $XBMC_HOME ]; then

0 notes on commit 57bba06

Please sign in to comment.
Something went wrong with that request. Please try again.