#!/bin/csh

set CURID = `isi_dmilog -i`

echo "**********"
echo "*** WARNING -- change-id is busted in Force BIOS, so this might"
echo "***            not catch the changes as currently implemented."
echo "**********"
echo "Starting to monitor the DMI log at change-id $CURID"

while (1)
    if ( "`isi_dmilog -I $CURID || echo RETFAIL`" == "RETFAIL" ) then 
	echo "dmilog changed at `date` [from old change-id $CURID]"
	set CURID = `isi_dmilog -i`
	isi_dmilog
    endif
    sleep 5
end
