Changeset 898 for branches


Ignore:
Timestamp:
Oct 23, 2006, 12:11:16 AM (13 years ago)
Author:
bruno
Message:

init now gives which mindi version created it

Location:
branches/stable/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/install.sh

    r834 r898  
    5252chmod 755 $locallib/mindi/aux-tools/sbin/*
    5353
     54# Substirute variables for init
     55perl -pi -e "s~^MINDI_VER=VVV~MINDI_VER=$MINDIVER~ ; s~^MINDI_REV=RRR~MINDI_REV=$MINDIREV~" $locallib/mindi/rootfs/sbin/init
     56
     57# Substirute variables for mindi
    5458if [ "$RPMBUILDMINDI" = "true" ]; then
    5559    sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=/usr~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=/etc/mindi~" -e "s~^MINDI_VER=VVV~MINDI_VER=$MINDIVER~" -e "s~^MINDI_REV=RRR~MINDI_REV=$MINDIREV~" mindi > $local/sbin/mindi
  • branches/stable/mindi/rootfs/sbin/init

    r870 r898  
    158158    res=$?
    159159    if [ "$res" -ne "0" ] ; then
    160     LogIt "First call to find-and-mount-cdrom failed." 1
    161     LogIt "Sleeping for 3 seconds and trying again." 1
    162     sleep 3
    163     find-and-mount-cdrom
    164     res=$?
     160        LogIt "First call to find-and-mount-cdrom failed." 1
     161        LogIt "Sleeping for 3 seconds and trying again." 1
     162        sleep 3
     163        find-and-mount-cdrom
     164        res=$?
    165165    fi
    166166    if [ "$res" -eq "0" ] ; then
    167 #        clear
    168     LogIt "OK, I am running on a CD-ROM. Good." 3
     167        LogIt "OK, I am running on a CD-ROM. Good." 3
    169168        CD_MOUNTED_OK=yes
    170169    elif [ "$res" -eq "1" ] ; then
    171 #        clear
    172     LogIt "OK, I am running on floppies. Good." 3
    173     CD_MOUNTED_OK=""
     170        LogIt "OK, I am running on floppies. Good." 3
     171        CD_MOUNTED_OK=""
    174172    else
    175     LogIt "OK, I am falling back to floppy mode." 3
     173        LogIt "OK, I am falling back to floppy mode." 3
    176174        LogIt "That means you'll have to copy the data disk images from" 3
    177175        LogIt "the CD/hard disk/whatever to physical 1.44MB disks and" 3
     
    180178        LogIt "on your hard disk. Your archives are probably fine but" 3
    181179        LogIt "your tape streamer and/or CD-ROM drive are eccentric. :-)" 3
    182     CD_MOUNTED_OK=""
     180        CD_MOUNTED_OK=""
    183181    fi
    184182    return 0
     
    422420# ------------------------ main -----------------------
    423421
     422MINDI_VER=VVV
     423MINDI_REV=RRR
    424424trap CaughtSoftReset SIGTERM
    425425LOGFILE=/tmp/mondo-restore.log
     
    428428USER=root
    429429export PATH GROOVY USER
     430
     431echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV}"
    430432
    431433mount -o remount rw /
Note: See TracChangeset for help on using the changeset viewer.