Changeset 746 in MondoRescue for branches/stable/mindi/rootfs


Ignore:
Timestamp:
Aug 5, 2006, 12:00:51 PM (18 years ago)
Author:
Bruno Cornec
Message:
  • Still trying to fix LABEL + LVM in mindi
  • Removed some X11 files remaining
  • remove some ps options not available with busybox
  • Use LOGFILE constantly in init & LogIt
Location:
branches/stable/mindi/rootfs/sbin
Files:
2 edited

Legend:

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

    r30 r746  
    11#!/bin/sh
     2#
     3# $Id$
     4#
    25
    36#    if [ ! -e "/bin/date" ] ; then
     
    811currdate=""
    912
    10     LOGFILE=/tmp/mondo-restore.log
    11     if [ ! -e "/tmp/mondo-restore.log" ] ; then
    12         echo "...first line..." > /tmp/mondo-restore.log
    13     fi
    14 #    mkdir -p /var/log
    15 #    ln -s -f /tmp/mondo-restore.log /var/log/mondo-restore.log
     13LOGFILE=/tmp/mondo-restore.log
     14if [ ! -e "$LOGFILE" ] ; then
     15    echo "...first line..." > $LOGFILE
     16fi
    1617
    1718# LogIt $phrase ------ log only
  • branches/stable/mindi/rootfs/sbin/init

    r740 r746  
    7878    openvt 6 /bin/sh
    7979    openvt 7 /bin/sh /sbin/wait-for-petris
    80 #    openvt 8 /usr/bin/tail -f /tmp/mondo-restore.log
    8180}
    8281
     
    231230    LogIt "Devfs found. Testing kernel support..."
    232231    if [ ! -e "/dev/.devfsd" ] ; then
    233         mount -t devfs devfs /dev 2>> /tmp/mondo-restore.log
     232        mount -t devfs devfs /dev 2>> $LOGFILE
    234233            if [ "$?" -ne "0" ] ; then
    235234        LogIt "Error while trying to mount devfs"
     
    369368        mount_cmd="mount /dev/shm -t tmpfs -o size=$size" ; # was 34m until 04/2003
    370369        LogIt "Trying '$mount_cmd'"
    371     $mount_cmd /tmp/tmpfs 2>> /tmp/mondo-restore.log
     370    $mount_cmd /tmp/tmpfs 2>> /$LOGFILE
    372371    res=$?
    373372    [ "$res" -eq "0" ] && break
     
    518517fi
    519518hack-cfg-if-necessary || LogIt "Cannot find hack-cfg-if-necessary"
    520 openvt 8 /usr/bin/tail -f /tmp/mondo-restore.log
     519openvt 8 /usr/bin/tail -f $LOGFILE
    521520
    522521#-------------------------------
Note: See TracChangeset for help on using the changeset viewer.