3 # Tested on SuSE 9.1 Professional with the hwinfo-8.62-0.2 package installed.
5 # Before you can run this plugin, you must do:
6 # /usr/sbin/hwinfo --short > /etc/hw.original
8 # /usr/sbin/hwinfo --short > /etc/hw.current
9 # /usr/bin/diff /etc/hw.original /etc/hw.current > /tmp/hw.check
12 # Rok Debevc -- rok.debevc@agenda.si
15 PATH
=/bin
:/sbin
:/usr
/bin
:/usr
/sbin
:/usr
/local
/bin
:/usr
/local
/sbin
17 PROGNAME
=`basename $0`
18 PROGPATH
=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
19 REVISION
=`echo '$Revision$' | sed -e 's/[^0-9.]//g'`
25 echo "Usage: $PROGNAME"
29 print_revision
$PROGNAME $REVISION
33 echo "This plugin checks hardware changes."
49 print_revision
$PROGNAME $REVISION
53 print_revision
$PROGNAME $REVISION
57 if `du /tmp/hw.check | cut -c 1|grep "^[0]" > /dev/null` ; then
58 echo No hardware is changed
61 echo ***hardware is changed
*** look into
/tmp
/hw.check