#!/bin/bash # # boot-report -- 2008-08-30, last edit 2008-09-09 # # /home/common/bin/boot-report -- copies config, dmesg and lilo.conf # to deltree:/home/common -- run after booting a new kernel for web # report # # Copyright (C) 2008 Grant Coady GPLv2 # # Home site: http://bugsplatter.id.au/bash/kernel/ # host=${HOSTNAME%%.*} version=$(uname -r) destdir="/home/common/dmesg.config/$host" [ -d $destdir ] || mkdir $destdir || exit 1 dmesg | gzip > $destdir/dmesg-$version.gz cat /boot/config-$version | gzip > $destdir/config-$version.gz cat /etc/lilo.conf | gzip > $destdir/lilo.conf.gz # end