Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
7b6548c7
Commit
7b6548c7
authored
Sep 09, 2013
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix camcontrol invocation for FreeBSD.
parent
9711fe95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
clientside/tmcc/common/checknode/diskcheck
clientside/tmcc/common/checknode/diskcheck
+3
-2
No files found.
clientside/tmcc/common/checknode/diskcheck
View file @
7b6548c7
...
...
@@ -500,7 +500,7 @@ getserial() {
if
[
"
${
cmc
/camcontrol
}
"
!=
"
${
cmc
}
"
]
;
then
sd
=
$1
sd
=
${
sd
#/dev/
}
res
=
$(
camcontrol inquiry
$sd
-S
2>/dev/null
)
res
=
$(
camcontrol inquiry
$sd
-S
2>/dev/null
)
fi
else
res
=
$(
$smtcl
-a
$1
|
grep
-i
'Serial number:'
)
...
...
@@ -544,7 +544,8 @@ getwcache() {
#don't have smartctl, maybe we can use camcontrol
cmc
=
$(
which camcontrol
)
if
[
"
${
cmc
/camcontrol
}
"
!=
"
${
cmc
}
"
]
;
then
x
=
$(
camcontrol modepage
$1
-m8
|
grep
WCE 2>/dev/null
)
sd
=
${
1
#/dev/
}
x
=
$(
camcontrol modepage
$sd
-m8
|
grep
WCE 2>/dev/null
)
if
[
"
${
x
/1
}
"
==
"
$x
"
]
;
then
res
=
"disabled"
else
...
...
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