Changeset 1040 in MondoRescue for branches/stable/tools/distro-env


Ignore:
Timestamp:
Jan 7, 2007, 12:20:30 AM (13 years ago)
Author:
Bruno Cornec
Message:

FreeBSD fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/distro-env

    r1039 r1040  
    6161            export dver = "sid"
    6262        fi
    63     elif [ -e /etc/motd && grep -q FreeBSD /etc/motd ]; then
    64         export ddir="freebsd"
    65         export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
     63    elif [ -e /etc/motd ]; then
     64        grep -q FreeBSD /etc/motd
     65        if [ $? -eq 0 ]; then
     66            export ddir="freebsd"
     67            export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
     68        else
     69            export ddir="unknown"
     70            export dver=""
     71        fi
    6672    else
    6773        export ddir="unknown"
     
    145151elif [ _"$dtype" = _"deb" ]; then
    146152    mkdir -p ${TOPBUILDDIR}
     153elif [ _"$dtype" = _"port" ]; then
     154    mkdir -p ${TOPBUILDDIR}
    147155elif [ _"$dfam" = _"slackware" ]; then
    148156    mkdir -p ${TOPBUILDDIR}
Note: See TracChangeset for help on using the changeset viewer.