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


Ignore:
Timestamp:
Jan 7, 2007, 12:10:23 PM (17 years ago)
Author:
Bruno Cornec
Message:

Syntax review (== suppresse for stricter POSIX conformance with =)

File:
1 edited

Legend:

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

    r1041 r1042  
    6565        fi
    6666    elif [ -e /etc/motd ]; then
    67         grep -q FreeBSD /etc/motd
     67        head -1 /etc/motd | grep -q FreeBSD
    6868        if [ $? -eq 0 ]; then
    6969            export ddir="freebsd"
    70             export dver=`awk '{print $2}' /etc/motd | cut -d- -f1`
     70            export dver=`head -1 /etc/motd | awk '{print $2}' /etc/motd | cut -d- -f1`
    7171        else
    7272            export ddir="unknown"
Note: See TracChangeset for help on using the changeset viewer.