From 348919391e4b0261f7b68e6272db6b48ca60819a Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 13 Jun 2003 08:39:50 +0000 Subject: [PATCH] Script from Evan (with tweaks) for loading modules into crash, if the "mod -S" command does not work (e.g. if the modules have been moved). --- lustre/tests/crash-mod.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lustre/tests/crash-mod.sh diff --git a/lustre/tests/crash-mod.sh b/lustre/tests/crash-mod.sh new file mode 100644 index 0000000..d5ce473 --- /dev/null +++ b/lustre/tests/crash-mod.sh @@ -0,0 +1,11 @@ +#!/bin/sh +TMP=${TMP:-/tmp} +BASEDIR=${1:-`dirname $0`/..} +LCMD=$TMP/crash-mod-`hostname` +echo "Storing crash module info in $LCMD" +cat /tmp/ogdb-`hostname` | while read JUNK M JUNK; do + MOD="$BASEDIR/$M" + MODNAME=`basename $MOD .o` + + echo mod -s $MODNAME $MOD | tee -a $LCMD +done -- 1.8.3.1