/[mdap]/bin/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

Annotation of /bin/fw-info.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations)
Sun Apr 22 14:42:56 2007 UTC (17 years ago) by dpavlin
Original Path: fw-info.pl
File MIME type: text/plain
File size: 379 byte(s)
beginning of firmware info tool
1 dpavlin 5 #!/usr/bin/perl -w
2    
3     # fw-info.pl
4     #
5     # 04/22/07 16:33:13 CEST Dobrica Pavlinusic <dpavlin@rot13.org>
6    
7     use strict;
8     use Data::Dump qw/dump/;
9    
10     my $path = shift @ARGV || die "Usage: $0 firmware.bin\n";
11    
12     open(my $fh, $path) || die "Can't open $path: $!";
13     my $ver;
14     seek($fh, 32, 0) || die "can't seek to 32: $!";
15     read($fh, $ver, 5);
16     print dump( $ver ), dump( unpack 'CCCCC', $ver ),$/;
17    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26