Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
5a348710
Commit
5a348710
authored
Jan 18, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addendum to commit
67cd8518
.
parent
67cd8518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
clientside/tmcc/common/config/rc.misc
clientside/tmcc/common/config/rc.misc
+4
-22
No files found.
clientside/tmcc/common/config/rc.misc
View file @
5a348710
#!/usr/bin/perl -w
#
# Copyright (c) 2004 University of Utah and the Flux Group.
# Copyright (c) 2004
, 2018
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -137,7 +137,8 @@ sub doreconfig()
#
sub
docleanup
()
{
unlink
TMNODEID
(),
TMCREATOR
(),
TMSWAPPER
();
unlink
TMNODEID
(),
TMCREATOR
(),
TMSWAPPER
(),
TMNODETYPE
();
unlink
TMNODEUUID
();
}
#
...
...
@@ -145,26 +146,7 @@ sub docleanup()
#
sub
donodeid
()
{
my
$nodeid
;
my
@tmccresults
;
if
(
tmcc
(
TMCCCMD_NODEID
,
undef
,
\
@tmccresults
)
<
0
)
{
fatal
("
Could not get nodeid from server!
");
}
return
0
if
(
!
@tmccresults
);
#
# There should be just one string. Ignore anything else.
#
if
(
$tmccresults
[
0
]
=~
/([-\w]*)/
)
{
$nodeid
=
$
1
;
}
else
{
fatal
("
Bad nodeid line:
$tmccresults
[0]
");
}
system
("
echo '
$nodeid
' >
"
.
TMNODEID
);
libsetup::
donodeid
();
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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