Changeset 2723


Ignore:
Timestamp:
Feb 25, 2011, 7:00:17 PM (9 years ago)
Author:
bruno
Message:
  • Adds a restore quiet option
Location:
branches/2.2.9/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/README.bootparam

    r2537 r2723  
    6666    Execute a final script before rebooting the machine at the end of the restoration. Could be an NFS shared script e.g., or a script located on the restored disk or in the initrd. Eg: post=/tmp/isodir/my-post.sh. Note that the script should be executable.
    6767
     68quiet
     69    Do not print information msgs in order to allow for easier tracking of error messages at boot time
     70
    6871serial=/dev/ttySx
    6972    When using a serial console, associate it to the tty device so it works correctly at restore time. By default set up /dev/ttyS0 as serial console. Pass the value of your serial console if different.
  • branches/2.2.9/mindi/rootfs/sbin/LogIt

    r1413 r2723  
    1616    echo "Date: `date`" >> $LOGFILE
    1717    echo "----------------" >> $LOGFILE
     18    if [ "`grep -i quiet /proc/cmdline`" ]; then
     19        echo "QUIET mode activated. Only error msgs are printed" >> $LOGFILE
     20        echo "----------------" >> $LOGFILE
     21    fi
    1822fi
    1923
     
    2630
    2731if [ "$#" = "1" ] ; then
    28     echo -e "$currdate $1" >> $LOGFILE
     32    echo -e "$currdate $1" >> $LOGFILE
    2933elif [ "$#" = "2" ] ; then
    30     if [ "$2" = "0" ] ; then
    31     echo -e "$currdate $1" >> $LOGFILE
    32     elif [ "$2" = "1" ] ; then
    33     echo -e "$1"
    34     echo -e "$currdate $1" >> $LOGFILE
    35     elif [ "$2" = "2" ] ; then
    36     echo -e -n "                                                                                \r$1\r"
    37     echo -e "$currdate $1" >> $LOGFILE
    38     elif [ "$2" = "3" ] ; then
    39     echo -e -n "                                                                                \r$1\n"
    40     echo -e "$currdate $1" >> $LOGFILE
    41     elif [ "$2" = "9" ] ; then
    42     if [ "$DEBUGGING" = "yes" ] ; then
    43         echo -e "$currdate $1" >> $LOGFILE
     34    if [ "$2" = "0" ] ; then
     35        echo -e "$currdate $1" >> $LOGFILE
     36    elif [ "$2" = "1" ] ; then
     37        if [ "`grep -i quiet /proc/cmdline`" ]; then
     38        else
     39            echo -e "$1"
     40        fi
     41        echo -e "$currdate $1" >> $LOGFILE
     42    elif [ "$2" = "2" ] ; then
     43        if [ "`grep -i quiet /proc/cmdline`" ]; then
     44        else
     45            echo -e -n "                                                                                \r$1\r"
     46        fi
     47        echo -e "$currdate $1" >> $LOGFILE
     48    elif [ "$2" = "3" ] ; then
     49        if [ "`grep -i quiet /proc/cmdline`" ]; then
     50        else
     51            echo -e -n "                                                                                \r$1\n"
     52        fi
     53        echo -e "$currdate $1" >> $LOGFILE
     54    elif [ "$2" = "9" ] ; then
     55        if [ "$DEBUGGING" = "yes" ] ; then
     56            echo -e "$currdate $1" >> $LOGFILE
     57        fi
     58    else
     59        LogIt "LogIt '$1' '$2' .. unknown 2nd param"
     60        exit 1
    4461    fi
    45     else
    46     LogIt "LogIt '$1' '$2' .. unknown 2nd param"
    47         exit 1
    48     fi
    4962else
    50     LogIt "LogIt '$1' .. silly params"
    51     exit 1
     63    LogIt "LogIt '$1' .. silly params"
     64    exit 1
    5265fi
    5366
Note: See TracChangeset for help on using the changeset viewer.