Changeset 911 in MondoRescue for branches/stable/mindi


Ignore:
Timestamp:
Nov 1, 2006, 7:46:51 PM (17 years ago)
Author:
Bruno Cornec
Message:
Further removal of all instances of grep -wx in code.
Location:
branches/stable/mindi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/analyze-my-lvm

    r850 r911  
    9494    allocation=`GetValueFromField $fname "LV Size"`
    9595    [ ! "`echo "$allocation" | grep "[k,m,g]"`" ] && allocation="$allocation"m
    96     if echo "$allocation" | grep -x ".*g" > /dev/null 2> /dev/null ; then
     96    if echo "$allocation" | grep -E '^.*g$' > /dev/null 2> /dev/null ; then
    9797        val=`echo "$allocation" | sed s/g//`
    9898        allocation=`echo "$val" | awk '{c=$1; printf "%d", c*1024;}'`m
     
    169169
    170170ListLvmDrivesAndPartitions() {
    171     $LVMCMD vgdisplay -v 2> /dev/null |grep "PV Name" | sed 's/(#)//' | awk '{print $3}'
     171    $LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'
    172172}
    173173
  • branches/stable/mindi/aux-tools/sbin/calc-disk-size

    r196 r911  
    2828# ---------------- main ---------------
    2929
    30 if [ "$#" -ne "1" ] || [ "`echo "$1" |grep -x "/dev/[a-z]*"`" = "" ]; then
     30if [ "$#" -ne "1" ] || [ "`echo "$1" |grep -E '^/dev/[a-z]*$'`" = "" ]; then
    3131    LogIt "calc-disk-size <device>" 1
    3232    exit 1
  • branches/stable/mindi/install.sh

    r898 r911  
    3535
    3636ARCH=`/bin/arch`
    37 echo $ARCH | grep -x "i[0-9]86" &> /dev/null && ARCH=i386 && locallib=$local/lib
    38 echo $ARCH | grep -x "x86_64" &> /dev/null && locallib=$local/lib64
    39 echo $ARCH | grep -x "ia64" &> /dev/null && locallib=$local/lib
     37echo $ARCH | grep -E '^i[0-9]86$' &> /dev/null && ARCH=i386 && locallib=$local/lib
     38echo $ARCH | grep -E '^x86_64$' &> /dev/null && locallib=$local/lib64
     39echo $ARCH | grep -E '^ia64$' &> /dev/null && locallib=$local/lib
    4040export ARCH
    4141
  • branches/stable/mindi/rootfs/sbin/init

    r898 r911  
    239239        [ -d "/proc/1" ] || mount -n /proc
    240240        LogIt "Kernel support found. Creating config file and starting devfsd"
    241         conffile=`strings $loc | grep "devfsd.conf$"`
     241        conffile=`strings $loc | grep -E "devfsd.conf$"`
    242242        [ "$conffile" ] || conffile="/etc/devfsd.conf"
    243243        confpath=`echo $conffile | sed "s/\/devfsd\.conf$//"`
Note: See TracChangeset for help on using the changeset viewer.