Changeset 3153 in MondoRescue for branches/3.0/mindi/rootfs/etc/init.d/rcS


Ignore:
Timestamp:
Jun 22, 2013, 8:42:08 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Should fix the issue with error in comparison of values for devtype in rcS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/rootfs/etc/init.d/rcS

    r3135 r3153  
    148148        for d in `ls /sys/class/scsi_device/*`; do
    149149            devtype=`cat $d/device/type`
    150             if [ _"$devtype" -eq _"1" ]; then
     150            if [ "$devtype" -eq "1" ]; then
    151151                LogIt "NOTE: Device /dev/sg$c is a Sequential device." 1
    152152                if [ -x /usr/bin/sg_map ]; then
     
    154154                    LogIt "      Retry using device $dev" 1
    155155                fi
    156             elif [ _"$devtype" -eq _"0" ]; then
     156            elif [ "$devtype" -eq "0" ]; then
    157157                # Skipping a HDD
    158158                /bin/true
    159             elif [ _"$devtype" -eq _"5" ]; then
     159            elif [ "$devtype" -eq "5" ]; then
    160160                # Checking whether it's a CD or a tape in OBDR mode
    161161                grep -q -i -E 'dat|ultrium|tape' $d/device/model
Note: See TracChangeset for help on using the changeset viewer.