/[mdap]/fw-info.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /fw-info.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by dpavlin, Mon Apr 23 18:04:04 2007 UTC revision 21 by dpavlin, Mon Apr 23 20:49:47 2007 UTC
# Line 17  read($fh, $b, length($magic)); Line 17  read($fh, $b, length($magic));
17  die "# $path not a firmware image\n" unless ($b eq $magic);  die "# $path not a firmware image\n" unless ($b eq $magic);
18  seek($fh, 32, 0) || die "can't seek to 32: $!";  seek($fh, 32, 0) || die "can't seek to 32: $!";
19  read($fh, $b, 4);  read($fh, $b, 4);
20  print join('.',unpack('CCCC', $b)),"\t$path\n";  printf("%8s %s\n", join('.',unpack('CCCC', $b)), $path);
21    

Legend:
Removed from v.18  
changed lines
  Added in v.21

  ViewVC Help
Powered by ViewVC 1.1.26