1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-08-20 16:58:59 +03:00
openwrt-xburst/target/linux/x86/image/mkimg_sitecom.pl

12 lines
225 B
Perl
Raw Normal View History

#!/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;