Changeset 244
- Timestamp:
- 04/26/07 18:07:59 (2 years ago)
- Files:
-
- trunk/client/revimage/autorestore/revoinv (modified) (2 diffs)
- trunk/client/revimage/autosave/autosave.c (modified) (1 diff)
- trunk/client/revimage/ui_newt/ui_newt.c (modified) (2 diffs)
- trunk/client/revimage/ui_newt/ui_newt.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/client/revimage/autorestore/revoinv
r222 r244 62 62 diskinfo() 63 63 { 64 NUM= -165 sfdisk -l -uS|grep /dev|tr - s " "|while read FIRST ALL64 NUM=0 65 sfdisk -l -uS|grep /dev|tr -d "*"|tr -s " "|while read FIRST ALL 66 66 do 67 67 if [ $FIRST = "Disk" ] 68 68 then 69 PNUM=0 70 C=`echo $ALL|cut -f 2 -d " "` 71 H=`echo $ALL|cut -f 4 -d " "` 72 S=`echo $ALL|cut -f 6 -d " "` 73 TOT=$(($C*$H*$S)) 74 echo "D:(hd$NUM):CHS($C,$H,$S)=$TOT" 69 75 NUM=$(($NUM+1)) 70 echo "D:(hd$NUM):CHS()$ALL"71 76 else 72 echo "P:$ALL" 77 T=`echo $ALL|cut -f 4 -d " "` 78 S=`echo $ALL|cut -f 1 -d " "` 79 L=`echo $ALL|cut -f 3 -d " "` 80 [ "$S" = "0" ] && continue 81 [ "$T" = "5" ] && continue 82 echo "P:$PNUM,t:$T,s:$S,l:$L" 83 PNUM=$(($PNUM+1)) 73 84 fi 74 85 done … … 92 103 grep AuthenticAMD /proc/cpuinfo && CPUV=41 93 104 PCI=`pciinfo` 94 #diskinfo 105 DI=`diskinfo` 95 106 96 107 DATA="M:280,U:$MEM 97 108 $PCI 98 109 C:$CPU1,$CPU2,0,$CPU4,0,0,0,0,0,0,0,0,$CPUV 99 F:$FREQ" 110 F:$FREQ 111 $DI" 100 112 101 113 if [ "$1" != "stdout" ]; then trunk/client/revimage/autosave/autosave.c
r197 r244 616 616 } 617 617 618 if (ttype[i] == 0x12 ) {619 /* Save as raw: compaq diag */618 if (ttype[i] == 0x12 || ttype[i] == 0xee || ttype[i] == 0xef) { 619 /* Save as raw: compaq diag, EFI partitions */ 620 620 tmprintf("%s/image_raw %s ?", revobin, device); 621 621 if (mysystem(tmppath) == 0) { trunk/client/revimage/ui_newt/ui_newt.c
r197 r244 424 424 newtRefresh (); 425 425 426 while (getchar() != 'c') 427 sleep(1); 426 waitkey(); 428 427 429 428 newtPopWindow(); … … 432 431 433 432 return "OK"; 433 } 434 435 /* 436 * Wait for the 'c' key 437 */ 438 void waitkey(void) 439 { 440 int fd; 441 442 fd = open("/dev/input/event1", O_RDONLY); 443 if (fd != -1) { 444 unsigned short ev[8]; 445 446 while (read(fd, &ev, sizeof(ev))) { 447 if (ev[5] == 0x2e) { 448 break; 449 } 450 } 451 close(fd); 452 } 453 sleep(1); 434 454 } 435 455 trunk/client/revimage/ui_newt/ui_newt.h
r197 r244 5 5 #define UI_READ_ERROR2 ui_read_error(__FILE__,__LINE__, errno, 0) 6 6 7 //void update_progress(int);8 7 void update_file(int); 9 8 int stats(void); … … 13 12 14 13 void ui_write_error(void); 15 //void ui_read_error(char *s, int l, int err, int fd);16 14 void fatal(void); 15 void waitkey(void);
