Whamcloud - gitweb
b=13886
authorgrev <grev>
Wed, 9 Apr 2008 19:04:12 +0000 (19:04 +0000)
committergrev <grev>
Wed, 9 Apr 2008 19:04:12 +0000 (19:04 +0000)
i=Oleg.Drokin
load crc16 module if it exists

lustre/tests/test-framework.sh

index 075dfd9..70355b3 100644 (file)
@@ -209,7 +209,7 @@ load_modules() {
     load_module lov/lov
     load_module mgc/mgc
     if [ -z "$CLIENTONLY" ]; then
-        modprobe crc16
+        grep -q crc16 /proc/kallsyms || { modprobe crc16 2>/dev/null || true; }
         [ "$FSTYPE" = "ldiskfs" ] && load_module ../ldiskfs/ldiskfs/ldiskfs
         load_module mgs/mgs
         load_module mds/mds