Commit 79e1c282 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Another whack at the serial number.

parent c1560dd4
......@@ -324,8 +324,9 @@ sub assemble_zonefile($) {
open(MAPHEAD, "<$mapfilehead") || fatal("Couldn't open $mapfilehead\n");
while (<MAPHEAD>) {
if ( /;\s*Serial\s+/i ) {
my $serial = `date +%Y%H%M%S`;
chop $serial;
my $serial = `date +%s`;
$serial = $serial | 0x70000000;
print MAP "\t\t\t$serial\t; Serial Number -- DO NOT EDIT\n";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment