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
9711fe95
Commit
9711fe95
authored
Sep 09, 2013
by
Mike Hibler
Browse files
Fix smartctl check for FreeBSD.
parent
6bc5c3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/checkutils.sh
View file @
9711fe95
...
...
@@ -584,9 +584,9 @@ findSmartctl_getopt() {
fi
fi
# if found check functionally
if
[
-n
"
${
findit
}
"
]
;
then
x
=
$(
/usr/sbin/smartctl
--get
|
grep
REQUIRED
)
[[
-z
"
$x
"
]]
&&
findit
=
$NOSM
if
[
"
${
findit
}
"
!=
"
$NOSM
"
]
;
then
x
=
$(
${
findit
}
--get
|
grep
REQUIRED
)
[[
-z
"
$x
"
]]
&&
findit
=
$NOSM
fi
echo
$findit
...
...
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