Changeset 2726 in MondoRescue


Ignore:
Timestamp:
Feb 26, 2011, 11:38:29 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Fix error introduced in previous patch in the if/then/else case without member in the then
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/rootfs/sbin/LogIt

    r2723 r2726  
    3535        echo -e "$currdate $1" >> $LOGFILE
    3636    elif [ "$2" = "1" ] ; then
    37         if [ "`grep -i quiet /proc/cmdline`" ]; then
    38         else
     37        if [ ! "`grep -i quiet /proc/cmdline`" ]; then
    3938            echo -e "$1"
    4039        fi
    4140        echo -e "$currdate $1" >> $LOGFILE
    4241    elif [ "$2" = "2" ] ; then
    43         if [ "`grep -i quiet /proc/cmdline`" ]; then
    44         else
     42        if [ ! "`grep -i quiet /proc/cmdline`" ]; then
    4543            echo -e -n "                                                                                \r$1\r"
    4644        fi
    4745        echo -e "$currdate $1" >> $LOGFILE
    4846    elif [ "$2" = "3" ] ; then
    49         if [ "`grep -i quiet /proc/cmdline`" ]; then
    50         else
     47        if [ ! "`grep -i quiet /proc/cmdline`" ]; then
    5148            echo -e -n "                                                                                \r$1\n"
    5249        fi
Note: See TracChangeset for help on using the changeset viewer.