Changeset 649 in MondoRescue for trunk/mondo/mondo


Ignore:
Timestamp:
Jun 8, 2006, 11:31:13 AM (18 years ago)
Author:
bcornec
Message:

merge -r617:641 $SVN_M/branches/stable

Location:
trunk/mondo/mondo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/autorun

    • Property unix-mode set to yes
  • trunk/mondo/mondo/common/libmondo-files.c

    r618 r649  
    11581158    fprintf(fout, "    echo $i | grep -qi ipconf= && ipconf=`echo $i | cut -d= -f2`\n");
    11591159    fprintf(fout, "done\n");
    1160     fprintf(fout, "grep -q \"dhcp\" \"$ipconf\"\n");
     1160    fprintf(fout, "echo \"$ipconf\" | grep -q \"dhcp\"\n");
    11611161    fprintf(fout, "if [ $? = 0 ]; then\n");
    11621162    fprintf(fout, "    ipdev=`echo $ipconf | cut -d: -f1`\n");
    1163     fprintf(fout, "    udhcpc -i $ipdev\n", );
     1163    fprintf(fout, "    udhcpc -i $ipdev\n");
    11641164    fprintf(fout, "else\n");
    11651165    fprintf(fout, "    if [ \"$ipconf\" != \"\" ]; then\n");
  • trunk/mondo/mondo/mondoarchive/mondo-cli.c

    r618 r649  
    312312            if (q != NULL) {
    313313                *q = '\0';
    314                 p = q+1 ;
    315314                if (stat(p, &buf) != 0) {
    316315                    log_msg(1, "ERROR ! %s doesn't exist", p);
    317316                    fatal_error("ERROR ! You specified a directory to include which doesn't exist");
    318317                }
     318                p = q+1 ;
    319319            } else {
    320320                if (stat(p, &buf) != 0) {
     
    548548            if (q != NULL) {
    549549                *q = '\0';
    550                 p = q+1 ;
    551550                if (stat(p, &buf) != 0) {
    552551                    log_msg(1, "WARNING ! %s doesn't exist", p);
    553552                }
     553                p = q+1 ;
    554554            } else {
    555555                if (stat(p, &buf) != 0) {
Note: See TracChangeset for help on using the changeset viewer.