mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 23:27:41 +02:00
f3263c9679
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33779 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
225 B
Perl
Executable File
12 lines
225 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
open (bzimg, @ARGV[0]);
|
|
while (<bzimg>) { $i .= $_; }
|
|
$i .= pack "v", -(unpack "%v*", $i);
|
|
print "CSYS";
|
|
print pack("V", length($i));
|
|
print pack("V", 0);
|
|
print "WRRM";
|
|
print pack("V", length($i));
|
|
print $i;
|