3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
6 # Read a manifest generated by fill2fs from the command
7 # line or stdin, checksum every file listed
9 # $Id: fill2fs_check,v 1.1 2001/04/26 23:46:25 ajag Exp ajag $
19 print "$0: $_ not found\n";
20 $status = 1; next file;
22 (undef, $expected) = split(/\./, basename $_);
23 chomp($sum = `sum -r $_`);
24 ($actual) = split(/\s+/, $sum);
25 if ($actual != $expected) {
26 print "$0: checksum is wrong for \"$_\"\n";
27 $status = 1; next file;