#!/bin/bash function backtrace { /usr/bin/gdb --quiet $1 $2 <&1 set width 250 bt EOF } #/sbin/ldconfig /bin/chown -R 0.0 * mount -t proc proc /proc mount -t sysfs sysfs /sys echo testmachine > /proc/sys/kernel/hostname export TERM=xterm export PATH=/sbin:/bin:/usr/sbin:/usr/bin echo 0 > /proc/sys/kernel/core_uses_pid ulimit -c unlimited /sbin/depmod -Ae /sbin/start_udev &> /dev/null /sbin/modprobe nls_cp437 /sbin/modprobe nls_ascii /sbin/modprobe nls_utf8 #export TERM=ansiw #export LANG=en_US.CP437 export LANG=en_US.UTF-8 cd /var/tmp/LFDK rm -f core /usr/bin/biostest sleep 6 if [ -f /var/tmp/LFDK/core ]; then reset clear echo The Application crashed! Debug information below echo -----------[ cut here ] ---------------------- backtrace /usr/bin/biostest /var/tmp/LFDK/core echo -----------[ cut here ] ---------------------- sleep 300 fi sleep 6 /sbin/shutdown -rn now