From 6470beeb32bdd5d34a80dc7ab060412bb6f72af0 Mon Sep 17 00:00:00 2001 From: huanghua Date: Thu, 28 Sep 2006 11:00:25 +0000 Subject: [PATCH] use modprobe instead insmod if modules are loaded already --- lustre/tests/run-llog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/run-llog.sh b/lustre/tests/run-llog.sh index 204eff5..15f168e 100644 --- a/lustre/tests/run-llog.sh +++ b/lustre/tests/run-llog.sh @@ -6,8 +6,8 @@ MDS=`ls /proc/fs/lustre/mdt | grep -v num_refs | head -n 1` [ -z "$MDS" ] && echo "no MDS available, skipping llog test" && exit 0 case `uname -r` in -2.4.*) insmod ../obdclass/llog_test.o || exit 1 ;; -2.6.*) insmod ../obdclass/llog_test.ko || exit 1 ;; +2.4.*) modprobe llog_test || exit 1 ;; +2.6.*) modprobe llog_test || exit 1 ;; *) echo "unknown kernel version `uname -r`" && exit 99 ;; esac lctl modules > $TMP/ogdb-`hostname` -- 1.8.3.1