Changeset 1339 in MondoRescue


Ignore:
Timestamp:
Apr 25, 2007, 12:23:24 AM (17 years ago)
Author:
Bruno Cornec
Message:

Logfiles correct now in this branch for scripts in mindi

Location:
branches/stable/mindi/rootfs/sbin
Files:
4 edited

Legend:

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

    r746 r1339  
    1111currdate=""
    1212
    13 LOGFILE=/tmp/mondo-restore.log
     13if [ _"$LOGFILE" = _"" ]; then
     14    echo "LOGFILE was undefined. Using /tmp/mondorestore2.log"
     15    LOGFILE="/tmp/mondorestore2.log"
     16fi
     17
    1418if [ ! -e "$LOGFILE" ] ; then
    1519    echo "...first line..." > $LOGFILE
  • branches/stable/mindi/rootfs/sbin/init

    r1272 r1339  
    367367        mount_cmd="mount /dev/shm -t tmpfs -o size=$size" ; # was 34m until 04/2003
    368368        LogIt "Trying '$mount_cmd'"
    369     $mount_cmd /tmp/tmpfs 2>> /$LOGFILE
     369    $mount_cmd /tmp/tmpfs 2>> $LOGFILE
    370370    res=$?
    371371    [ "$res" -eq "0" ] && break
     
    434434MINDI_REV=RRR
    435435trap CaughtSoftReset SIGTERM
    436 LOGFILE=/tmp/mondo-restore.log
     436LOGFILE=/tmp/mondorestore.log
    437437PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/games
    438438GROOVY=/tmp/groovy-stuff
    439439USER=root
    440 export PATH GROOVY USER
     440export PATH GROOVY USER LOGFILE
    441441
    442442echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV}"
  • branches/stable/mindi/rootfs/sbin/install-additional-tools

    r1193 r1339  
    5151        slicefile="$slicefile"$sliceno
    5252        [ ! -e "$slicefile" ] && break
    53 #   echo "biggienumber=$biggienumber slicefile=$slicefile" >> /tmp/mondo-restore.log
    5453        cat $slicefile >> /tmp/out.dat
    5554        rm -f $slicefile
    5655        sliceno=$(($sliceno+1))
    5756        done
    58 #    echo "$sliceno slices"
    5957
    60     echo "$biggiefname ($biggiefsize KB) restored. $sliceno slices." >> /tmp/mondo-restore.log
    61 
    62 #    cat $stub.[0-9]* > /tmp/out.dat
    63 #    rm -f $stub.*               ; # .[0-9]* for the slices, plus .name & .size
    64 
     58    echo "$biggiefname ($biggiefsize KB) restored. $sliceno slices." >> $LOGFILE
    6559
    6660    mkdir -p $biggiefname
  • branches/stable/mindi/rootfs/sbin/post-init

    r739 r1339  
    5757fi
    5858
    59 cat /tmp/mountlist.txt >> /tmp/mondo-restore.log
     59cat /tmp/mountlist.txt >> $LOGFILE
    6060
    6161iso=`grep iso /proc/cmdline`
Note: See TracChangeset for help on using the changeset viewer.