Changeset 1061 in MondoRescue
- Timestamp:
- Jan 18, 2007, 1:47:59 PM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 5 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/distributions/conf/mindi.conf.dist
r1060 r1061 81 81 # Modules supported by mindi and required at boot time 82 82 # 83 mindi_scsi_mods="3w-xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs"83 mindi_scsi_mods="3w-xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs" 84 84 mindi_ide_mods="ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_piix libata via82cxxx generic nvidia ahci sata_nv" 85 mindi_usb_mods="usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd usbkbd usbhid"85 mindi_usb_mods="usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid" 86 86 mindi_pcmcia_mods="pcmcia_core ds yenta_socket" 87 87 mindi_cdrom_mods="cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate" -
branches/stable/mindi/rootfs/etc/group
r30 r1061 6 6 tty::5: 7 7 disk::6:root,adm 8 lp::7:lp9 8 mem::8: 10 9 kmem::9: 11 10 wheel::10:root 12 11 floppy::11:root 13 mail::12:mail14 news::13:news15 uucp::14:uucp16 man::15:man17 users::100:games18 12 nogroup::65534: -
branches/stable/mindi/rootfs/etc/hosts
r30 r1061 1 2 1 127.0.0.1 localhost 3 127.0.0.1 darkstar.frop.org darkstar4 212.216.176.33 mail.tin.it -
branches/stable/mindi/rootfs/etc/ld.so.conf
r853 r1061 2 2 /usr/lib 3 3 /usr/local/lib 4 /usr/ns/lib5 /usr/vnc/lib6 /usr/tcltk/lib7 4 /usr/X11R6/lib 8 /usr/srv/lib9 /usr/wks/lib10 /usr/gcc/lib11 /usr/perl/lib12 /usr/emu/lib13 /usr/jvm/lib14 5 /lib64 15 6 /usr/lib64 -
branches/stable/mindi/rootfs/etc/passwd
r30 r1061 1 halt:x:7:0:halt:/sbin:/sbin/halt2 operator:x:11:0:operator:/root:/bin/bash3 1 root::0:0::/root:/bin/bash 4 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown5 sync:x:5:0:sync:/sbin:/bin/sync6 2 bin:x:1:1:bin:/bin: 7 ftp:x:404:1::/home/ftp:/bin/bash8 3 daemon:x:2:2:daemon:/sbin: 9 4 adm:x:3:4:adm:/var/adm: 10 lp:x:4:7:lp:/var/spool/lpd:11 mail:x:8:12:mail:/var/spool/mail:12 postmaster:x:14:12:postmaster:/var/spool/mail:/bin/bash13 news:x:9:13:news:/usr/lib/news:14 uucp:x:10:14:uucp:/var/spool/uucppublic:15 man:x:13:15:man:/usr/man:16 guest:x:405:100:guest:/dev/null:/dev/null17 5 nobody:x:65534:100:nobody:/dev/null: 18 alfa::1001:0:alfa:/alfa: -
branches/stable/mindi/rootfs/etc/shells
r30 r1061 1 1 /bin/sh 2 -
branches/stable/mindi/rootfs/etc/termcap
r30 r1061 11 11 # Some entries in termcap 2.0.7 are too long and your programs 12 12 # may complain "tgetent: warning: termcap entry too long". Here is 13 a smaller termcap. But it may not cover as many terminals as the one13 # a smaller termcap. But it may not cover as many terminals as the one 14 14 # in termcap 2.0.7. You can install it as /etc/termcap. 15 15 # -
branches/stable/mindi/rootfs/sbin/init
r1044 r1061 272 272 if [ "`HowMuchFreeSpaceOnRamdisk`" -le "3" ] ; then 273 273 LogIt "Ramdisk is a bit smaller than I would like." 1 274 LogIt "Please re-run Mondo/Mindi but edit /usr/local/mindi first" 1274 LogIt "Please re-run Mondo/Mindi but edit mindi first" 1 275 275 LogIt "and set EXTRA_SPACE to something high, e.g. 8000" 1 276 276 Die "Aborting. Please reboot." … … 424 424 trap CaughtSoftReset SIGTERM 425 425 LOGFILE=/tmp/mondo-restore.log 426 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/ local/mondo:/usr/local/mindi:.426 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/games 427 427 GROOVY=/tmp/groovy-stuff 428 428 USER=root -
branches/stable/mondo/src/common/libmondo-tools.c
r1044 r1061 343 343 344 344 /** 345 * Locate mondoarchive's home directory. Searches in /usr/ local/mondo, /usr/share/mondo,345 * Locate mondoarchive's home directory. Searches in /usr/share/mondo, 346 346 * /usr/local/share/mondo, /opt, or if all else fails, search /usr. 347 347 * -
branches/stable/mondo/src/include/mr_mem.h
r1054 r1061 9 9 #define MR_MEM_H 10 10 11 #ifndef _GNU_SOURCE 12 #define _GNU_SOURCE 13 #endif 14 #include <stdarg.h> 15 11 16 /* functions (public methods) */ 12 17 13 18 extern void mr_free(char *allocated); 14 19 extern void mr_allocstr(char *alloc, const char *orig); 15 extern void mr_asprintf(char **alloc, const char *fmt, ...); 16 /* 17 extern void mr_vasprintf(char **alloc, const char *fmt, va_list ap); 18 */ 20 extern void mr_asprintf(char **alloc, const char *fmt, va_list args); 19 21 extern void mr_getline(char **lineptr, size_t *n, FILE *stream); 20 22 extern void *mr_malloc(size_t size); -
branches/stable/mondo/src/include/mr_msg.h
r1054 r1061 9 9 #define MR_MSG_H 10 10 11 #ifndef _GNU_SOURCE 12 #define _GNU_SOURCE 13 #endif 14 #include <stdarg.h> 15 11 16 /* functions (public methods) */ 12 17 13 #include <stdarg.h> 14 15 extern void mr_msg(int debug, const char *fmt, ...); 18 extern void mr_msg(int debug, const char *fmt, va_list args); 16 19 17 20 #endif /* MR_MSG_H */ -
branches/stable/mondo/src/lib/mr_err.c
r1054 r1061 36 36 37 37 void mr_log_exit(int errorcode, const char *message) { 38 mr_msg(0, message);38 mr_msg(0, message); 39 39 mr_exit(errorcode, message); 40 40 } -
branches/stable/mondo/src/lib/mr_mem.c
r1054 r1061 12 12 #include <stdio.h> 13 13 #include <stdlib.h> 14 #include <stdarg.h>15 14 16 15 #include "mr_err.h" … … 53 52 54 53 /* encapsulation function for asprintf */ 55 void mr_asprintf(char **strp, const char *fmt, ...) {54 void mr_asprintf(char **strp, const char *fmt, va_list args) { 56 55 57 va_list args;58 56 int res = 0; 59 57 60 va_start(args, fmt);61 58 res = vasprintf(strp, fmt, args); 62 59 if (res == -1) { 63 60 mr_log_exit(-1,"Unable to alloc memory in mr_asprintf\nExiting..."); 64 61 } 65 va_end(args);66 62 } 67 63 -
branches/stable/mondo/src/lib/mr_msg.c
r1054 r1061 30 30 if ((fout = fopen(mr_logfile, "w")) == NULL) { 31 31 fprintf(stderr,"Unable to write to %s\n",mr_logfile); 32 fprintf(stderr,"Logging desactivated\n" ,mr_logfile);32 fprintf(stderr,"Logging desactivated\n"); 33 33 mr_msg_close(); 34 34 } … … 41 41 /* 42 42 * Function that log a message. Not called directly 43 * but through macros in mr_msg.h43 * but through other functions 44 44 */ 45 void _mr_msg(int debug, const char *file, const char *function, int line, const char *fmt, ...) {45 void _mr_msg(int debug, const char *file, const char *function, int line, const char *fmt, va_list args) { 46 46 47 47 int i = 0; 48 48 int res = 0; 49 49 FILE *fout = NULL; 50 va_list args;51 50 52 51 if (mr_logfile == NULL) { … … 66 65 fprintf(fout, "%s->%s#%d: ", file, function, line); 67 66 } 68 va_start(args, fmt);69 67 if (vfprintf(fout, fmt, args) < 0) { 70 68 fprintf(stderr,"Unable to print to %s\n",mr_logfile); 69 return; 71 70 } 72 va_end(args);73 71 74 72 fprintf(fout, "\n"); … … 79 77 } 80 78 81 void mr_msg(int level, const char *f ormat, ...) {79 void mr_msg(int level, const char *fmt, va_list args) { 82 80 83 va_list args; 84 va_start(args, format); 85 _mr_msg(level, __FILE__, __FUNCTION__, __LINE__, format, args); 86 va_end(args); 81 _mr_msg(level, __FILE__, __FUNCTION__, __LINE__, fmt, args); 87 82 }
Note:
See TracChangeset
for help on using the changeset viewer.