Changeset 1854 in MondoRescue for branches/2.2.5/mindi/mindi


Ignore:
Timestamp:
Jan 11, 2008, 10:58:11 AM (16 years ago)
Author:
Bruno Cornec
Message:

removal of locate usage completely from code to use findw!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/mindi

    r1851 r1854  
    592592    done
    593593    if [ ! -e "$mappath" ] || [ -d "$mappath" ] ; then
    594        mappath=$(locate */kbd/keymaps/*/$locale)
     594            mappath=$(find / -name "*/kbd/keymaps/*/$locale")
    595595    fi
    596596    echo "mappath = $mappath" >> $LOGFILE
     
    617617    [ ! -e "$ISOLINUX" ] && ISOLINUX=/usr/share/lib/syslinux/isolinux.bin
    618618    [ ! -e "$ISOLINUX" ] && ISOLINUX=/usr/share/lib64/syslinux/isolinux.bin
    619     [ ! -e "$ISOLINUX" ] && ISOLINUX=`locate isolinux.bin | grep -x "/.*/isolinux.bin"`
     619    [ ! -e "$ISOLINUX" ] && ISOLINUX=`find / -name isolinux.bin | grep -x "/.*/isolinux.bin"`
    620620    [ ! -e "$ISOLINUX" ] && Die "Please install isolinux first. If your syslinux RPM doesn't include isolinux, you may download an isolinux RPM from Mondo's website - go to http://www.mondorescue.com and click on 'Download'"
    621621    echo "Found isolinux.bin at $ISOLINUX" >> $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.