Changeset 620 in MondoRescue for branches/2.0.8


Ignore:
Timestamp:
Jun 3, 2006, 7:29:07 AM (18 years ago)
Author:
andree
Message:

Fixed parsing of DHCP information in start-nfs script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0.8/mondo/mondo/common/libmondo-files.c

    r619 r620  
    12881288    fprintf(fout, "    echo $i | grep -qi ipconf= && ipconf=`echo $i | cut -d= -f2`\n");
    12891289    fprintf(fout, "done\n");
    1290     fprintf(fout, "grep -q \"dhcp\" \"$ipconf\"\n");
     1290    fprintf(fout, "echo \"$ipconf\" | grep -q \"dhcp\"\n");
    12911291    fprintf(fout, "if [ $? = 0 ]; then\n");
    1292     fprintf(fout, "    ipdev=`echo $ipconf | cut -d: -f1`\n");
     1292    fprintf(fout, "    ipdev=`echo $ipconf | cut -d: -f2`\n");
    12931293    fprintf(fout, "    udhcpc -i $ipdev\n");
    12941294    fprintf(fout, "else\n");
Note: See TracChangeset for help on using the changeset viewer.