Changeset 746 in MondoRescue for branches/stable/mindi/rootfs
- Timestamp:
- Aug 5, 2006, 12:00:51 PM (18 years ago)
- Location:
- branches/stable/mindi/rootfs/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/sbin/LogIt
r30 r746 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 6 # if [ ! -e "/bin/date" ] ; then … … 8 11 currdate="" 9 12 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 13 LOGFILE=/tmp/mondo-restore.log 14 if [ ! -e "$LOGFILE" ] ; then 15 echo "...first line..." > $LOGFILE 16 fi 16 17 17 18 # LogIt $phrase ------ log only -
branches/stable/mindi/rootfs/sbin/init
r740 r746 78 78 openvt 6 /bin/sh 79 79 openvt 7 /bin/sh /sbin/wait-for-petris 80 # openvt 8 /usr/bin/tail -f /tmp/mondo-restore.log81 80 } 82 81 … … 231 230 LogIt "Devfs found. Testing kernel support..." 232 231 if [ ! -e "/dev/.devfsd" ] ; then 233 mount -t devfs devfs /dev 2>> /tmp/mondo-restore.log232 mount -t devfs devfs /dev 2>> $LOGFILE 234 233 if [ "$?" -ne "0" ] ; then 235 234 LogIt "Error while trying to mount devfs" … … 369 368 mount_cmd="mount /dev/shm -t tmpfs -o size=$size" ; # was 34m until 04/2003 370 369 LogIt "Trying '$mount_cmd'" 371 $mount_cmd /tmp/tmpfs 2>> / tmp/mondo-restore.log370 $mount_cmd /tmp/tmpfs 2>> /$LOGFILE 372 371 res=$? 373 372 [ "$res" -eq "0" ] && break … … 518 517 fi 519 518 hack-cfg-if-necessary || LogIt "Cannot find hack-cfg-if-necessary" 520 openvt 8 /usr/bin/tail -f /tmp/mondo-restore.log519 openvt 8 /usr/bin/tail -f $LOGFILE 521 520 522 521 #-------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.