Changeset 2457


Ignore:
Timestamp:
Oct 9, 2009, 1:33:44 PM (9 years ago)
Author:
bruno
Message:
  • Apply path from Matthew Cline (matt_at_nightrealms.com) in order to fix #359
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2456 r2457  
    9797ISO_CMD="/usr/bin/mkisofs"
    9898ISO_OPT="-J -r -v -p Mindi -publisher http://www.mondorescue.org -A Mindi"
     99
     100# Mandriva system e.g. use cdrkit, which uses genisoimage instead of mkisofs.
     101# However, they use exactly the same command line parameters, so just
     102# use genisoimage if it's available.
     103if [ ! -x $ISO_CMD ]; then
     104    ISO_CMD=/usr/bin/genisoimage
     105fi
    99106
    100107# Now we can create what we need
     
    13341341OfferToMakeBootableISO() {
    13351342    local i old_pwd
     1343    if [ -z "$ISO_CMD" ]; then
     1344        LogIt "Neither mkisofs nor genisoimage found, unable to make CD image"
     1345        return
     1346    fi
    13361347    if [ "$PROMPT_MAKE_CD_IMAGE" = "yes" ] && [ _"$MONDO_SHARE" = _"" ]; then
    13371348        echo -en "Shall I make a bootable CD image? (y/[n]) "
     
    26692680fi
    26702681
     2682# Check for ISO_CMD command
     2683if [ ! -x $ISO_CMD ]; then
     2684    echo "NOTE: No CD image (ISO file) utility found" >> $LOGFILE
     2685fi
     2686
    26712687FLOPPY_WAS_MOUNTED=""
    26722688for mtpt in /media/floppy /mnt/floppy /floppy ; do
Note: See TracChangeset for help on using the changeset viewer.