Ignore:
Timestamp:
Apr 18, 2008, 1:41:41 AM (16 years ago)
Author:
Bruno Cornec
Message:

svn merge -r 1902:1923 $SVN_M/branches/2.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-tools.c

    r1903 r1924  
    2121#include "libmondo-fork-EXT.h"
    2222#include "libmondo-raid-EXT.h"
     23#include "libmondo-devices-EXT.h"
    2324#include <sys/socket.h>
    2425#include <netdb.h>
     
    7879
    7980extern bool am_I_in_disaster_recovery_mode(void);
     81
     82/* Return a string containing the date */
     83char *mr_date(void) {
     84
     85        time_t tcurr;
     86
     87        tcurr = time(NULL);
     88        return(ctime(&tcurr));
     89}
     90
     91/*-----------------------------------------------------------*/
    8092
    8193
     
    692704    strcpy(bkpinfo->tmpdir,p);
    693705    paranoid_free(tmp);
    694 
    695     //sprintf(bkpinfo->tmpdir, "%s/tmpfs/mondo.tmp.%d", "/tmp", (int) (random() % 32768));  // for mondorestore
    696706}
    697707
     
    711721    memset((void *) bkpinfo, 0, sizeof(struct s_bkpinfo));
    712722
    713     /* special case for tmpdir as used eveywhere after */
    714     setup_tmpdir(NULL);
     723    sensibly_set_tmpdir_and_scratchdir();
    715724
    716725    bkpinfo->manual_tray = mr_conf->manual_tray;
     
    764773    bkpinfo->prefix = tmp;
    765774
    766     bkpinfo->scratchdir[0] = '\0';
    767775    bkpinfo->make_filelist = TRUE;  // unless -J supplied to mondoarchive
    768776    bkpinfo->optimal_set_size = 0;
     
    823831 * - make sure afio, cdrecord, bzip2, awk, md5sum, strings, mindi, and buffer exist
    824832 * - make sure CD-ROM is unmounted
    825  * - make sure /etc/modules.conf exists
    826833 * - make sure user's mountlist is OK by running <tt>mindi --makemountlist</tt>
    827834 *
     
    940947    }
    941948    mr_free(tmp);
    942 #ifndef __FreeBSD__
    943     if (!does_file_exist("/etc/modules.conf")) {
    944         if (does_file_exist("/etc/conf.modules")) {
    945             log_it("Linking /etc/modules.conf to /etc/conf.modules");
    946             run_program_and_log_output
    947                 ("ln -sf /etc/conf.modules /etc/modules.conf", 5);
    948         } else if (does_file_exist("/etc/modprobe.d")) {
    949             log_it
    950                 ("Directory /etc/modprobe.d found. mindi will use its contents.");
    951         } else if (does_file_exist("/etc/modprobe.conf")) {
    952             log_it("Linking /etc/modules.conf to /etc/modprobe.conf");
    953             run_program_and_log_output
    954                 ("ln -sf /etc/modprobe.conf /etc/modules.conf", 5);
    955         } else {
    956             retval++;
    957             log_to_screen
    958                 (_("Please find out what happened to /etc/modules.conf"));
    959         }
    960     }
    961 #endif
    962949
    963950    run_program_and_log_output("cat /etc/fstab", 5);
Note: See TracChangeset for help on using the changeset viewer.