Changeset 1784 in MondoRescue for branches/2.2.5/mindi
- Timestamp:
- Nov 10, 2007, 11:47:07 PM (17 years ago)
- Location:
- branches/2.2.5/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/mindi
r1781 r1784 1017 1017 } 1018 1018 1019 1019 # 1020 # Critical function which computes all dependencies (dyn. lib.) 1021 # for a list of binaries 1022 # 1020 1023 LocateDeps() { 1021 1024 local incoming fname deps … … 1057 1060 fi 1058 1061 if [ -h "$d" ]; then 1059 echo "$link $d" 1062 echo "$link" 1063 echo "$d" 1060 1064 else 1061 1065 echo "$link" … … 2406 2410 2407 2411 ProcessLDD() { 2408 local incoming f 2412 local incoming f d nd bd bnd 2409 2413 read incoming 2410 while [ "$incoming" != "" ] 2414 while [ "$incoming" != "" ]; do 2411 2415 # We take the full path name of the dyn. lib. we want 2412 2416 incoming=`echo "$incoming" | awk '{if (match($1,/\//)) {print $1} else {if (match($3,/\//)) print $3} fi}'` 2413 2417 for f in $incoming ; do 2418 # echo modified file name if one of the parent dir is a link 2419 # by replacing the original dirname by the destination of the link 2420 d="`dirname $f`" 2421 found="false" 2422 while [ "$d" != "/" ]; do 2423 if [ -h "$d" ]; then 2424 nd=`readlink -f $d` 2425 bd=`basename $d` 2426 bnd=`basename $nd` 2427 f=`echo $f | sed "s~/$bd/~/$bnd/~"` 2428 echo $d 2429 fi 2430 d="`dirname $d`" 2431 done 2432 2414 2433 echo "$f" 2415 2434 echo "`ReadAllLink $f`" -
branches/2.2.5/mindi/mindi-bkphw
r1782 r1784 20 20 21 21 mkdir $bkpdir,0755 if (! -d $bkpdir) ; 22 open(SYSTEM," dmidecode -s 'system-product-name' |") || die "You needdmidecode for mindi hardware support";22 open(SYSTEM,"/usr/sbin/dmidecode -s 'system-product-name' |") || die "You need /usr/sbin/dmidecode for mindi hardware support"; 23 23 my $productname = <SYSTEM>; 24 24 close(SYSTEM); … … 26 26 chomp($productname); 27 27 if ($productname =~ /proliant/i) { 28 print "Detected an HP Hardware. Nice. Continue to support my job :-)\n";28 print "Detected an HP Proliant Server. Nice. Continue to support my job :-)\n"; 29 29 print "Activating Proliant support for mindi\n"; 30 30 open(PROLIANT,"$confdir/proliant.files") || die "Unable to open $confdir/proliant.files"; … … 79 79 } else { 80 80 print "No Hardware support for $productname\n"; 81 print " Ask your manufacturer to contribute to the mindi project\n";81 print "You may ask your manufacturer to contribute to the mindi project\n"; 82 82 } 83 83 rmdir $bkpdir if (-d $bkpdir) ;
Note:
See TracChangeset
for help on using the changeset viewer.