Changeset 2431


Ignore:
Timestamp:
Sep 28, 2009, 1:16:18 PM (9 years ago)
Author:
bruno
Message:
  • Use only the AWK veriable everywhere and not the awk command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2429 r2431  
    746746    if [ -e "/vmfs/volumes" ]; then
    747747        # For VMWare ESX 3 get the device names of these volumes
    748         vdf -P | grep -E '/vmfs/volumes' | awk '{print $1}'
     748        vdf -P | grep -E '/vmfs/volumes' | $AWK '{print $1}'
    749749    fi
    750750    return
     
    18191819touch $mpincfile
    18201820if [ -a $MODPROBE_CONF ]; then
    1821     includes=$(awk '/^[ \t]*include[ \t]+/ {if(NF>=2){print $2}}' $MODPROBE_CONF|sort -u)
     1821    includes=$($AWK '/^[ \t]*include[ \t]+/ {if(NF>=2){print $2}}' $MODPROBE_CONF|sort -u)
    18221822    if [ -n "$includes" ]; then
    18231823        for include in $includes
     
    19691969    while [ "$incoming" != "" ]; do
    19701970        # We take the full path name of the dyn. lib. we want
    1971         incoming=`echo "$incoming" | awk '{if (match($1,/\//)) {print $1} else {if (match($3,/\//)) print $3} fi}'`
     1971        incoming=`echo "$incoming" | $AWK '{if (match($1,/\//)) {print $1} else {if (match($3,/\//)) print $3} fi}'`
    19721972        for f in $incoming ; do
    19731973            # echo modified file name if one of the parent dir is a link
     
    25942594echo "-------------" >> $LOGFILE
    25952595lsmod >> $LOGFILE
    2596 MODULES="`cat /proc/modules | awk '{print $1}'`"
     2596MODULES="`cat /proc/modules | $AWK '{print $1}'`"
    25972597if [ -x /usr/sbin/esxcfg-module ]; then
    25982598    echo "-------------" >> $LOGFILE
     
    26022602    echo "-------------" >> $LOGFILE
    26032603    /usr/sbin/esxcfg-module -l >> $LOGFILE
    2604     MODULES="$MODULES `/usr/sbin/esxcfg-module -l | awk '{print $1}'`"
     2604    MODULES="$MODULES `/usr/sbin/esxcfg-module -l | $AWK '{print $1}'`"
    26052605fi
    26062606echo "FORCE_MODS:" >> $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.