Changeset 1414


Ignore:
Timestamp:
May 7, 2007, 3:40:49 PM (12 years ago)
Author:
bruno
Message:
  • Log improvements again during restore
  • Fix a bug where mondorestore.log was truncated
Location:
branches/stable/mindi/rootfs/sbin
Files:
2 edited

Legend:

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

    r1339 r1414  
    44#
    55
    6 #    if [ ! -e "/bin/date" ] ; then
    7 #   currdate=""
    8 #    else
    9 #   currdate=`date +%H:%M`
    10 #    fi
    11 currdate=""
     6currdate="`date '+%H:%M'`"
    127
    138if [ _"$LOGFILE" = _"" ]; then
     
    1712
    1813if [ ! -e "$LOGFILE" ] ; then
    19     echo "...first line..." > $LOGFILE
     14    echo "Start of Restore" > $LOGFILE
     15    echo "----------------" >> $LOGFILE
     16    echo "Date: `date`" >> $LOGFILE
     17    echo "----------------" >> $LOGFILE
    2018fi
    2119
  • branches/stable/mindi/rootfs/sbin/init

    r1408 r1414  
    426426    install-additional-tools
    427427    echo "Inserting modules ..."
    428     insert-all-my-modules > $LOGFILE 2> $LOGFILE
     428    insert-all-my-modules >> $LOGFILE 2>> $LOGFILE
    429429}
    430430
     
    524524
    525525# Log some useful info
    526 echo "init (from mindi v$MINDI_VER-r${MINDI_REV}" >> $LOGFILE
    527 echo "/proc/cmdline is:" >> $LOGFILE
     526LogIt "init (from mindi v$MINDI_VER-r${MINDI_REV}"
     527LogIt "/proc/cmdline is:"
    528528cat /proc/cmdline  >> $LOGFILE
    529 echo "Start date : `date`" >> $LOGFILE
    530 echo "df result:" >> $LOGFILE
    531 echo "----------" >> $LOGFILE
     529LogIt "df result:"
     530LogIt "----------"
    532531df >> $LOGFILE
    533 echo "-------------" >> $LOGFILE
    534 echo "mount result:" >> $LOGFILE
    535 echo "-------------" >> $LOGFILE
     532LogIt "-------------"
     533LogIt "mount result:"
     534LogIt "-------------"
    536535mount >> $LOGFILE
    537 echo "-------------" >> $LOGFILE
    538 echo "lsmod result:" >> $LOGFILE
    539 echo "-------------" >> $LOGFILE
     536LogIt "-------------"
     537LogIt "lsmod result:"
     538LogIt "-------------"
    540539lsmod >> $LOGFILE
    541 echo "-------------" >> $LOGFILE
     540LogIt "-------------"
    542541
    543542#-------------------------------
     
    566565umount /mnt/cdrom 2> /dev/null
    567566mount / -o rw,remount > /dev/null 2> /dev/null
     567LogIt "Launching Shell"
    568568sh
    569569CaughtSoftReset
Note: See TracChangeset for help on using the changeset viewer.