Changeset 1158 in MondoRescue for branches/stable/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Feb 14, 2007, 2:32:50 AM (17 years ago)
Author:
Bruno Cornec
Message:

WARNING: Interface change for mondo-restore.cfg: the delimiter between the variable name and its value is now a = (was a ' ')
This change will allow the introduction of the new mr_conf functions

File:
1 edited

Legend:

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

    r1087 r1158  
    8383LoadKeymap() {
    8484    local fname
    85     fname=`grep keymap-lives-here /tmp/mondo-restore.cfg | cut -d' ' -f2 2> /dev/null`
     85    fname=`grep keymap-lives-here /tmp/mondo-restore.cfg | cut -d'=' -f2 2> /dev/null`
    8686    [ "$fname" = "" ] && return
    8787    if which loadkeys > /dev/null 2> /dev/null ; then
     
    101101    cd $GROOVY
    102102    [ "$1" != "" ] && tapedev=$1
    103     [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d' ' -f2`
     103    [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d'=' -f2`
    104104#    tar -zxf $tapedev
    105105    dd if=$tapedev bs=32k count=1024 | tar -zx
     
    107107    if [ "$res" -eq "0" ] ; then
    108108    grep -v media-dev /tmp/mondo-restore.cfg > /tmp/mr.cfg
    109     echo "media-dev $tapedev" >> /tmp/mr.cfg
     109    echo "media-dev=$tapedev" >> /tmp/mr.cfg
    110110        cp -f /tmp/mr.cfg /tmp/mondo-restore.cfg
    111111    fi
Note: See TracChangeset for help on using the changeset viewer.