Changeset 2723 in MondoRescue
- Timestamp:
- Feb 25, 2011, 7:00:17 PM (13 years ago)
- Location:
- branches/2.2.9/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/README.bootparam
r2537 r2723 66 66 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. 67 67 68 quiet 69 Do not print information msgs in order to allow for easier tracking of error messages at boot time 70 68 71 serial=/dev/ttySx 69 72 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 16 16 echo "Date: `date`" >> $LOGFILE 17 17 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 18 22 fi 19 23 … … 26 30 27 31 if [ "$#" = "1" ] ; then 28 32 echo -e "$currdate $1" >> $LOGFILE 29 33 elif [ "$#" = "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 44 61 fi 45 else46 LogIt "LogIt '$1' '$2' .. unknown 2nd param"47 exit 148 fi49 62 else 50 51 63 LogIt "LogIt '$1' .. silly params" 64 exit 1 52 65 fi 53 66
Note:
See TracChangeset
for help on using the changeset viewer.