Changeset 274 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c


Ignore:
Timestamp:
Jan 3, 2006, 4:15:54 PM (18 years ago)
Author:
bcornec
Message:

merge -r272:273 $SVN_M/branches/2.06

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-tools.c

    r197 r274  
    172172             "for i in `find /root /home -type d -name Desktop -maxdepth 2`; do \
    173173file=$i/.directory; if [ -f \"$file\" ] ; then mv -f $file $file.old ; \
    174 cat $file.old | awk '{if (index($0, \"rootimagesmindi\")) { while (length($0)>2) { getline;} ; } \
    175 else { print $0;};}' > $file ; fi ; done");
     174awk '{if (index($0, \"rootimagesmindi\")) { while (length($0)>2) { getline;} ; } \
     175else { print $0;};}'$file.old > $file ; fi ; done");
    176176    run_program_and_log_output(tmp, 5);
    177177    paranoid_free(tmp);
     
    870870#ifndef __FreeBSD__
    871871    if (run_program_and_log_output
    872         ("cat /proc/devices | grep ramdisk", FALSE)) {
     872        ("grep ramdisk /proc/devices", FALSE)) {
    873873        if (!ask_me_yes_or_no
    874874            ("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?"))
     
    10961096    log_msg(4, "Done. Great. Seeting command to something");
    10971097    asprintf(&command,
    1098              "cat /etc/fstab | grep -v \":\" | grep -vx \"#.*\" | grep -w \"/boot\" | tr -s ' ' '\t' | cut -f1 | head -n1");
     1098             "grep -v \":\" /etc/fstab | grep -vx \"#.*\" | grep -w \"/boot\" | tr -s ' ' '\t' | cut -f1 | head -n1");
    10991099    log_msg(4, "Cool. Command = '%s'", command);
    11001100    asprintf(&tmp, call_program_and_get_last_line_of_output(command));
Note: See TracChangeset for help on using the changeset viewer.