Skip to content
GitLab
Menu
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
32c7ae00
Commit
32c7ae00
authored
Jul 03, 2013
by
Dan Reading
Browse files
handle set -u on when sourcing. Better warning message if no tmcc
parent
21dcb353
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/checkutils.sh
View file @
32c7ae00
...
...
@@ -548,16 +548,14 @@ inithostname() {
if
[
-e
"
$BINDIR
/tmcc"
]
;
then
host
=
$(
$BINDIR
/tmcc nodeid
)
else
echo
"
ERROR no tmcc comman
d"
echo
"
WARN no
$BINDIR
/tmcc command for nodei
d"
# maybe its just time to give up
if
[
-z
"
$host
"
]
;
then
if
[
-e
"
$BOOTDIR
/realname"
]
;
then
host
=
$(
cat
$BOOTDIR
/realname
)
elif
[
-e
"
$BOOTDIR
/nodeid"
]
;
then
host
=
$(
cat
$BOOTDIR
/nodeid
)
else
host
=
$(
hostname
)
fi
if
[
-e
"
${
BOOTDIR
}
/realname"
]
;
then
host
=
$(
cat
$BOOTDIR
/realname
)
elif
[
-e
"
$BOOTDIR
/nodeid"
]
;
then
host
=
$(
cat
$BOOTDIR
/nodeid
)
else
host
=
$(
hostname
)
fi
fi
return
0
...
...
Write
Preview
Supports
Markdown
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