Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
79e1c282
Commit
79e1c282
authored
Dec 15, 2009
by
Leigh B. Stoller
Browse files
Another whack at the serial number.
parent
c1560dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/named_setup.in
View file @
79e1c282
...
...
@@ -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
`;
chomp
(
$serial
);
$serial
=
$serial
|
0x70000000
;
print
MAP
"
\t\t\t
$serial
\t
; Serial Number -- DO NOT EDIT
\n
";
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment