mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
createlog: adapt for systemd. include even more info
This commit is contained in:
parent
58b80606f6
commit
39630a0b65
@ -41,25 +41,23 @@ getlog_cmd() {
|
||||
rm -rf $BASEDIR/$LOGDIR
|
||||
mkdir -p $BASEDIR/$LOGDIR
|
||||
|
||||
# OS Info
|
||||
# LOGFILE="00_OS.log"
|
||||
# getlog_cmd cat /etc/issue
|
||||
|
||||
# XBMC.log
|
||||
LOGFILE="01_XBMC.log"
|
||||
for i in `find /storage/.xbmc/temp/ -type f -name "*.log"`; do
|
||||
getlog_cmd cat $i
|
||||
done
|
||||
|
||||
# Kernel.log
|
||||
LOGFILE="02_Kernel.log"
|
||||
getlog_cmd lsmod
|
||||
# System.log
|
||||
LOGFILE="02_System.log"
|
||||
getlog_cmd dmesg
|
||||
getlog_cmd lsmod
|
||||
getlog_cmd ps xa
|
||||
|
||||
# Hardware.log
|
||||
LOGFILE="03_Hardware.log"
|
||||
getlog_cmd lspci -vvv
|
||||
getlog_cmd lspci -vvvvnn
|
||||
getlog_cmd lsusb -vvv
|
||||
getlog_cmd lsusb -t
|
||||
getlog_cmd cat /proc/cpuinfo
|
||||
|
||||
# Audio.log
|
||||
@ -70,7 +68,11 @@ mkdir -p $BASEDIR/$LOGDIR
|
||||
|
||||
# Network.log
|
||||
LOGFILE="05_Network.log"
|
||||
getlog_cmd ifconfig
|
||||
getlog_cmd ifconfig -a
|
||||
getlog_cmd netstat -rn
|
||||
getlog_cmd netstat -nalp
|
||||
getlog_cmd connmanctl services
|
||||
getlog_cmd cat /etc/resolv.conf
|
||||
|
||||
# varlog.log
|
||||
LOGFILE="06_varlog.log"
|
||||
@ -88,13 +90,17 @@ mkdir -p $BASEDIR/$LOGDIR
|
||||
getlog_cmd cat /proc/mounts
|
||||
getlog_cmd df -h
|
||||
|
||||
# DMI.log
|
||||
# LOGFILE="08_dmi.log"
|
||||
# getlog_cmd dmidecode
|
||||
# Journal (current)
|
||||
LOGFILE="09_Journal-cur.log"
|
||||
getlog_cmd journalctl --no-pager -b -0
|
||||
|
||||
# Journal (prev)
|
||||
LOGFILE="10_Journal-prev.log"
|
||||
getlog_cmd journalctl --no-pager -b -1
|
||||
|
||||
# pack logfiles
|
||||
mkdir -p /storage/logfiles
|
||||
# tar cvjf /storage/logfiles/log-$DATE.tar.bz2 $LOGDIR -C $BASEDIR
|
||||
zip -jq /storage/logfiles/log-$DATE.zip $BASEDIR/$LOGDIR/*
|
||||
|
||||
# remove logdir
|
||||
rm -rf $BASEDIR/$LOGDIR
|
||||
|
Loading…
x
Reference in New Issue
Block a user