summaryrefslogtreecommitdiff
path: root/sign.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sign.pl')
-rwxr-xr-xsign.pl19
1 files changed, 0 insertions, 19 deletions
diff --git a/sign.pl b/sign.pl
deleted file mode 100755
index d793035..0000000
--- a/sign.pl
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/perl
-
-open(SIG, $ARGV[0]) || die "open $ARGV[0]: $!";
-
-$n = sysread(SIG, $buf, 1000);
-
-if($n > 510){
- print STDERR "boot block too large: $n bytes (max 510)\n";
- exit 1;
-}
-
-print STDERR "boot block is $n bytes (max 510)\n";
-
-$buf .= "\0" x (510-$n);
-$buf .= "\x55\xAA";
-
-open(SIG, ">$ARGV[0]") || die "open >$ARGV[0]: $!";
-print SIG $buf;
-close SIG;