Changeset 1347 in MondoRescue for branches/stable/mindi/mindi


Ignore:
Timestamp:
Apr 25, 2007, 12:56:13 AM (17 years ago)
Author:
Bruno Cornec
Message:

Stricter POSIX compliance for mindi to allow usage with dash on Ubuntu (Fix for
#154)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1337 r1347  
    6262INTERACTIVE="$mindi_interactive"
    6363
    64 if [ $INTERACTIVE == "yes" ]; then
     64if [ "$INTERACTIVE" = "yes" ]; then
    6565    # do you want to be prompted to write
    6666    # floppy images out to floppy disks?
     
    690690            for tool in $filelist ; do
    691691                lvmresolved=`readlink -f $tool`
    692                 if [ "$tool" == "$lvmresolved" ]; then
     692                if [ "$tool" = "$lvmresolved" ]; then
    693693                    echo "$tool" >> $tempfile
    694694                elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
     
    698698                    fi
    699699                    toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`
    700                     if [ "$lvmversion" == "200" ]; then
     700                    if [ "$lvmversion" = "200" ]; then
    701701                        # pvdata and lvmcreate_initrd don't exist in LVM2
    702702                        case "$toolstripped" in
     
    10891089
    10901090    # Make temporary modprobe.conf file if we are told so
    1091     if [ $tmpmodprobe_flag == "Y" ] ; then
     1091    if [ "$tmpmodprobe_flag" = "Y" ] ; then
    10921092        infile="$MINDI_TMP/modprobe.conf.mindi"
    10931093        find /etc/modprobe.d -maxdepth 1 -name "*" -xtype f -print0 | xargs -0 cat > $infile
     
    11141114    cd /
    11151115    # Remove temporary modprobe.conf file if we have created one
    1116     if [ $tmpmodprobe_flag == "Y" ] ; then
     1116    if [ "$tmpmodprobe_flag" = "Y" ] ; then
    11171117        rm -f $infile
    11181118    fi
     
    29322932# /etc/modprobe.conf which is exactly what module-init-tools does. The temporary
    29332933# modprobe.conf file is created in MakeModuleLoadingScript. AL041128.
    2934 if [ -d "/etc/modprobe.d" ] && [ `uname -r | cut -c1-3` == "2.6" ] ; then
     2934if [ -d "/etc/modprobe.d" ] && [ "`uname -r | cut -c1-3`" = "2.6" ] ; then
    29352935    TMPMODPROBE_FLAG="Y"
    29362936else
     
    32283228        Die "Please use -k <path> to specify kernel."
    32293229    fi
    3230     if [ $INTERACTIVE == "yes" ]; then
     3230    if [ "$INTERACTIVE" = "yes" ]; then
    32313231        echo -en "Do you want to use your own kernel to build the boot disk ([y]/n) ?"
    32323232        read ch
     
    32463246    fi
    32473247fi
    3248 if [ _"$MONDO_SHARE" = _"" ] && [ $INTERACTIVE = "yes" ] && [ "$ARCH" != "ia64" ] ; then
     3248if [ _"$MONDO_SHARE" = _"" ] && [ "$INTERACTIVE" = "yes" ] && [ "$ARCH" != "ia64" ] ; then
    32493249    echo -en "Would you like to use LILO (instead of syslinux)\nfor your boot CD/floppies (y/[n]) ?"
    32503250    read ch
Note: See TracChangeset for help on using the changeset viewer.