Commit bdb6f84 [storage/multipath] Fedora has scsi_debug module by default, so delete downloading scsi_debug part

1 file Authored and Committed by lilin a year ago
[storage/multipath] Fedora has scsi_debug module by default, so delete downloading scsi_debug part

    
 1 @@ -171,23 +171,6 @@
 2           RETURN_STR="${mpath_name_list}"
 3           return 0
 4       fi
 5 - #RHEL 5 don't have scsi_debug by default
 6 - modinfo scsi_debug 1>/dev/null 2>/dev/null
 7 - if [ $? -ne 0 ];then
 8 -         check_pae="$(uname -r|grep PAE)"
 9 -     if [ "CHK${check_pae}" == "CHK" ];then
10 -             echo "INFO: Downloading scsi_debug module for RHEL5:"
11 -             echo "wget http://lacrosse.corp.redhat.com/~fge/scsi_debug/scsi_debug_`uname -m`.ko -O /lib/modules/`uname -r`/kernel/drivers/scsi/scsi_debug.ko -q"
12 -             wget http://lacrosse.corp.redhat.com/~fge/scsi_debug/scsi_debug_`uname -m`.ko \
13 -                 -O /lib/modules/`uname -r`/kernel/drivers/scsi/scsi_debug.ko -q
14 -     else
15 -             echo "INFO: Downloading scsi_debug module for RHEL5:"
16 -             echo "wget http://lacrosse.corp.redhat.com/~fge/scsi_debug/scsi_debug_`uname -m`PAE.ko -O /lib/modules/`uname -r`/kernel/drivers/scsi/scsi_debug.ko -q"
17 -             wget http://lacrosse.corp.redhat.com/~fge/scsi_debug/scsi_debug_`uname -m`PAE.ko \
18 -                 -O /lib/modules/`uname -r`/kernel/drivers/scsi/scsi_debug.ko -q
19 -     fi
20 -     depmod -a
21 - fi
22   #setup scsi_debug
23       echo "INFO: Loading scsi_debug module for simulation of mpath"
24       local dev_size=100