# HG changeset patch # User Pascal Bellard # Date 1303458238 -7200 # Node ID 3a6f2e0ddaea3423ab20f5104b07ea668ecf5b33 # Parent f60dbe1151cb6e6fb3eb4937c5659e4709f6e4e7 index.cgi: add filesystem info & boot log in report diff -r f60dbe1151cb -r 3a6f2e0ddaea index.cgi --- a/index.cgi Fri Apr 22 01:59:42 2011 +0000 +++ b/index.cgi Fri Apr 22 09:43:58 2011 +0200 @@ -119,6 +119,7 @@ echo '' ;; *\ report\ *) TITLE="- $(gettext "System report")" + [ -d /var/cache/slitaz ] || mkdir -p /var/cache/slitaz output=/var/cache/slitaz/sys-report.html xhtml_header echo "

$(gettext "Reporting to:") $output

" @@ -143,7 +144,7 @@

SliTaz system report

Date: $(date)
-uptime   :$(uptime)
+uptime   : $(uptime)
 cmdline  : $(cat /proc/cmdline)
 version  : $(cat /etc/slitaz-release)
 packages : $(ls /var/lib/tazpkg/installed | wc -l) installed
@@ -181,6 +182,50 @@
 
 $(ifconfig -a)
 
+

route -n

+
+$(route -n)
+
+

/etc/resolv.conf

+
+$(cat /etc/resolv.conf)
+
+EOT + ok_status + gettext "Getting filesystems info..." + cat >> $output << EOT +

blkid

+
+$(blkid)
+
+

fdisk -l

+
+$(fdisk -l)
+
+

mount

+
+$(mount)
+
+

df -h

+
+$(df -h)
+
+

df -i

+
+$(df -i)
+
+EOT + ok_status + gettext "Getting boot logs... " + cat >> $output << EOT +

$(gettext "Kernel messages")

+
+$(cat /var/log/dmesg.log)
+
+

$(gettext "Boot scripts")

+
+$(cat /var/log/boot.log | filter_taztools_msgs)
+
EOT ok_status gettext "Creating report footer... "