openwrt_archive/target/linux/x86/image/mkimg_sitecom.pl
2012-10-15 18:54:34 +00:00

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;