Changeset 1342


Ignore:
Timestamp:
Apr 25, 2007, 12:29:55 AM (12 years ago)
Author:
bruno
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.3/mindi/mindi

    r1336 r1342  
    679679            for tool in $filelist ; do
    680680                lvmresolved=`readlink -f $tool`
    681                 if [ "$tool" == "$lvmresolved" ]; then
     681                if [ "$tool" = "$lvmresolved" ]; then
    682682                    echo "$tool" >> $tempfile
    683683                elif echo "$lvmresolved" | grep "lvmiopversion" &> /dev/null ; then
     
    687687                    fi
    688688                    toolstripped=`echo $tool | $AWK -F / '{print $NF;}'`
    689                     if [ "$lvmversion" == "200" ]; then
     689                    if [ "$lvmversion" = "200" ]; then
    690690                        # pvdata and lvmcreate_initrd don't exist in LVM2
    691691                        case "$toolstripped" in
     
    11311131
    11321132    # Make temporary modprobe.conf file if we are told so
    1133     if [ $tmpmodprobe_flag == "Y" ] ; then
     1133    if [ "$tmpmodprobe_flag" = "Y" ] ; then
    11341134        infile="$MINDI_TMP/modprobe.conf.mindi"
    11351135        find /etc/modprobe.d -maxdepth 1 -name "*" -xtype f -print0 | xargs -0 cat > $infile
     
    11561156    cd /
    11571157    # Remove temporary modprobe.conf file if we have created one
    1158     if [ $tmpmodprobe_flag == "Y" ] ; then
     1158    if [ "$tmpmodprobe_flag" = "Y" ] ; then
    11591159        rm -f $infile
    11601160    fi
     
    28132813# /etc/modprobe.conf which is exactly what module-init-tools does. The temporary
    28142814# modprobe.conf file is created in MakeModuleLoadingScript. AL041128.
    2815 if [ -d "/etc/modprobe.d" ] && [ `uname -r | cut -c1-3` == "2.6" ] ; then
     2815if [ -d "/etc/modprobe.d" ] && [ `uname -r | cut -c1-3` = "2.6" ] ; then
    28162816    TMPMODPROBE_FLAG="Y"
    28172817else
Note: See TracChangeset for help on using the changeset viewer.