Changeset 3073


Ignore:
Timestamp:
Nov 21, 2012, 3:14:51 PM (7 years ago)
Author:
bruno
Message:
  • Avoid error msg when some files do not exist and are logged (mdstat) and warn if they do not exist (raidtab, mdadm.conf)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3072 r3073  
    29512951    LogFile "-------------"
    29522952    cat /etc/raidtab >> $LOGFILE
     2953elif
     2954    LogFile "No file /etc/raidtab"
    29532955fi
    29542956if [ -e /etc/mdadm.conf ]; then
     
    29572959    LogFile "-------------"
    29582960    cat /etc/mdadm.conf >> $LOGFILE
     2961elif
     2962    LogFile "No file /etc/mdadm.conf"
    29592963fi
    29602964LogFile "-------------"
     
    29672971cat /proc/swaps >> $LOGFILE
    29682972LogFile "-------------"
    2969 LogFile "cat /proc/mdstat:"
    2970 LogFile "-------------"
    2971 cat /proc/mdstat >> $LOGFILE
     2973if [ -e /proc/mdstat ]; then
     2974    LogFile "cat /proc/mdstat:"
     2975    LogFile "-------------"
     2976    cat /proc/mdstat >> $LOGFILE
     2977elif
     2978    LogFile "No pseudo file /proc/mdstat"
     2979fi
    29722980LogFile "-------------"
    29732981LogFile "cat /proc/partitions:"
Note: See TracChangeset for help on using the changeset viewer.