Changeset 703 in MondoRescue


Ignore:
Timestamp:
Jul 22, 2006, 2:19:46 AM (18 years ago)
Author:
bcornec
Message:

Some tabs for mindi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r692 r703  
    766766    done
    767767    if  [ "$incoming" = "LVMFILES:" ] ; then
    768     incoming=`ReadLine`
    769     lvmversion=""
     768        incoming=`ReadLine`
     769        lvmversion=""
    770770    while [ "$incoming" != "" ] ; do
    771771        if echo "$incoming" | grep -x " *#.*" &> /dev/null ; then
    772 #       echo "Skipping '$incoming'"
    773         incoming=`ReadLine`
    774         continue
     772            incoming=`ReadLine`
     773            continue
    775774        fi
    776775        filelist=`GenerateListForFile "$incoming"`
     
    778777            lvmresolved=`ResolveSoftlink $tool`
    779778            if [ "$tool" == "$lvmresolved" ]; then
    780             echo "$tool" >> $tempfile
     779                echo "$tool" >> $tempfile
    781780            elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
    782             if [ "$lvmversion" = "" ] ; then
    783             lvmversion=`$lvmresolved`
    784             echo "$lvmresolved" >> $tempfile
    785             fi
    786             toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`
    787             if [ "$lvmversion" == "200" ]; then
    788             # pvdata and lvmcreate_initrd don't exist in LVM2
    789             case "$toolstripped" in
    790                 "pvdata")
    791                 continue
    792                 ;;
    793                 "lvmcreate_initrd")
    794                 continue
    795                 ;;
    796             esac
    797             fi
    798             toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped
    799             if [ -e "$toolpath" ] ; then
    800             echo "$toolpath" >> $tempfile
    801             echo "$tool" >> $tempfile
    802             else
    803             toolpath="/lib/lvm-"$lvmversion"/"$toolstripped
    804             fi
    805             if [ -e "$toolpath" ] ; then
    806             echo "$toolpath" >> $tempfile
    807             echo "$tool" >> $tempfile
    808             else
    809             echo "Where are your LVM-Tools? Couldn't find $tool"
    810             fi
    811         else
    812             echo "$tool" >> $tempfile
    813         fi
     781                if [ "$lvmversion" = "" ] ; then
     782                    lvmversion=`$lvmresolved`
     783                    echo "$lvmresolved" >> $tempfile
     784                fi
     785                toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`
     786                if [ "$lvmversion" == "200" ]; then
     787                    # pvdata and lvmcreate_initrd don't exist in LVM2
     788                    case "$toolstripped" in
     789                    "pvdata")
     790                        continue
     791                        ;;
     792                    "lvmcreate_initrd")
     793                        continue
     794                        ;;
     795                    esac
     796                fi
     797                toolpath="/sbin/lvm-"$lvmversion"/"$toolstripped
     798                if [ -e "$toolpath" ] ; then
     799                    echo "$toolpath" >> $tempfile
     800                    echo "$tool" >> $tempfile
     801                else
     802                    toolpath="/lib/lvm-"$lvmversion"/"$toolstripped
     803                fi
     804                if [ -e "$toolpath" ] ; then
     805                    echo "$toolpath" >> $tempfile
     806                    echo "$tool" >> $tempfile
     807                else
     808                    echo "Where are your LVM-Tools? Couldn't find $tool"
     809                fi
     810            else
     811                echo "$tool" >> $tempfile
     812            fi
    814813        done
    815814        progress=$(($progress+1))
Note: See TracChangeset for help on using the changeset viewer.