aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMartijn Kaijser <machine.sanctum@gmail.com>2013-08-31 15:47:37 -0700
committerMartijn Kaijser <machine.sanctum@gmail.com>2013-08-31 15:47:37 -0700
commit57bba0661f814273de23e1b79bfda3931bcc9524 (patch)
treea3c66717755c0f8555374f4ca6a7501fa519db6b /tools
parent276abf9e3d283ae26199d9f8879bb324264a7661 (diff)
parent4bf818498ed50c3716fbbef3648112ab92f5d529 (diff)
Merge pull request #3086 from mus65/xbmc.sh
[Linux] small xbmc.sh crashlog improvements
Diffstat (limited to 'tools')
-rw-r--r--tools/Linux/xbmc.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in
index 02ffa0e6b7..2bead97fe4 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
@@ -74,6 +77,9 @@ print_crash_report()
echo >> $FILE
echo "############### STACK TRACE #################" >> $FILE
if which gdb >/dev/null 2>&1; then
+ if which systemd-coredumpctl &> /dev/null; then
+ systemd-coredumpctl dump -o core xbmc.bin &> /dev/null
+ fi
single_stacktrace "$PWD" 1
# Find in plugins directories
if [ $XBMC_HOME ]; then