Ignore:
Timestamp:
Nov 4, 2005, 11:55:39 PM (14 years ago)
Author:
bcornec
Message:

merge -r 96:97 from 2.04 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/analyze-my-lvm

    r30 r98  
    243243
    244244# -------------------------------- main -----------------------------------
    245 which lvmdiskscan >/dev/null 2>&1 || Die "Cannot find lvmdiskscan. Are you sure you're using LVM?"
     245which lvmdiskscan 2>/dev/null 2>&1 || Die "Cannot find lvmdiskscan. Are you sure you're using LVM?"
    246246if [ -e "/proc/lvm/global" ] && [ "`cat /proc/lvm/global | tr -s '\t' ' ' | grep "0 VGs 0 PVs 0 LVs"`" != "" ] ; then
    247247    exit 0
     
    253253#lvmversion=`lvmdiskscan --version | grep "LVM version:" | cut -d: -f2 | cut -d. -f1 | sed -e 's/ //g'`
    254254
    255 lvmversion=`lvmdiskscan --version |
     255lvmversion=`lvmdiskscan --help |
    256256  grep -E "Logical Volume Manager|LVM version:" |
    257257  cut -d: -f2 | cut -d. -f1 |
     
    259259  sed -e 's/ //g'`
    260260
    261 if which lvm; then
     261if which lvm 2>/dev/null; then
    262262    version=`lvm version | grep "LVM version" | awk '{print $3}'`
    263263    i="`echo "$version" | cut -d'.' -f1`"
Note: See TracChangeset for help on using the changeset viewer.