From fa0cb1a5f2fdd6029e8b982561c6f01cd538d8ba Mon Sep 17 00:00:00 2001 From: Bas Spaans Date: Sun, 18 Mar 2012 09:50:49 +0100 Subject: [PATCH 1/4] Add OE version information to the header of every log file generated --- packages/sysutils/busybox/scripts/createlog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/sysutils/busybox/scripts/createlog b/packages/sysutils/busybox/scripts/createlog index 7d9d88f983..b39b08d061 100755 --- a/packages/sysutils/busybox/scripts/createlog +++ b/packages/sysutils/busybox/scripts/createlog @@ -25,10 +25,14 @@ DATE=`date -u +%Y-%m-%d-%H.%M.%S` BASEDIR="/tmp" LOGDIR="log-$DATE" +RELEASE="`cat /etc/release`" +GIT="`cat /etc/issue |grep git`" getlog_cmd() { echo "################################################################################" >> $BASEDIR/$LOGDIR/$LOGFILE echo "# ... output of $@" >> $BASEDIR/$LOGDIR/$LOGFILE + echo "# OpenELEC release: $RELEASE" >> $BASEDIR/$LOGDIR/$LOGFILE + echo "# $GIT" >> $BASEDIR/$LOGDIR/$LOGFILE echo "################################################################################" >> $BASEDIR/$LOGDIR/$LOGFILE $@ >> $BASEDIR/$LOGDIR/$LOGFILE echo "" >> $BASEDIR/$LOGDIR/$LOGFILE From fe981ad7def3e84d1a2a2a73cc9f64321d09d59e Mon Sep 17 00:00:00 2001 From: Bas Spaans Date: Sun, 18 Mar 2012 09:52:29 +0100 Subject: [PATCH 2/4] Disable generation of 00_OS.log as the information is in the header of every log file generated --- packages/sysutils/busybox/scripts/createlog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sysutils/busybox/scripts/createlog b/packages/sysutils/busybox/scripts/createlog index b39b08d061..a51ca8fc2b 100755 --- a/packages/sysutils/busybox/scripts/createlog +++ b/packages/sysutils/busybox/scripts/createlog @@ -42,8 +42,8 @@ rm -rf $BASEDIR/$LOGDIR mkdir -p $BASEDIR/$LOGDIR # OS Info - LOGFILE="00_OS.log" - getlog_cmd cat /etc/issue +# LOGFILE="00_OS.log" +# getlog_cmd cat /etc/issue # XBMC.log LOGFILE="01_XBMC.log" From 36addd61eaca725d58900d4d2a1fdda116163f55 Mon Sep 17 00:00:00 2001 From: Bas Spaans Date: Sun, 18 Mar 2012 10:08:16 +0100 Subject: [PATCH 3/4] Adds 08_Filesystem.log to output of createlog. contains list of mounts --- packages/sysutils/busybox/scripts/createlog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/sysutils/busybox/scripts/createlog b/packages/sysutils/busybox/scripts/createlog index a51ca8fc2b..9793751543 100755 --- a/packages/sysutils/busybox/scripts/createlog +++ b/packages/sysutils/busybox/scripts/createlog @@ -83,6 +83,10 @@ mkdir -p $BASEDIR/$LOGDIR getlog_cmd cat /proc/bus/input/devices getlog_cmd cat /proc/acpi/wakeup +# Filesystem.log + LOGFILE="08_Filesystem.log" + getlog_cmd cat /proc/mounts + # DMI.log # LOGFILE="08_dmi.log" # getlog_cmd dmidecode From 5a5250afb6da99a1757deaf1672e5801c7bfc551 Mon Sep 17 00:00:00 2001 From: Bas Spaans Date: Sun, 18 Mar 2012 11:42:05 +0100 Subject: [PATCH 4/4] createlog: Adds filesystem usage information to 08_Filesystem.log --- packages/sysutils/busybox/scripts/createlog | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sysutils/busybox/scripts/createlog b/packages/sysutils/busybox/scripts/createlog index 9793751543..8e0befa7ab 100755 --- a/packages/sysutils/busybox/scripts/createlog +++ b/packages/sysutils/busybox/scripts/createlog @@ -86,6 +86,7 @@ mkdir -p $BASEDIR/$LOGDIR # Filesystem.log LOGFILE="08_Filesystem.log" getlog_cmd cat /proc/mounts + getlog_cmd df -h # DMI.log # LOGFILE="08_dmi.log"