Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Starting Kit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Starting Kit
Commits
06b22bbe
Commit
06b22bbe
authored
Oct 01, 2019
by
manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update driver load
parent
78e6a2b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
loadDriver.py
test/validation/loadDriver.py
+4
-10
No files found.
test/validation/loadDriver.py
View file @
06b22bbe
...
...
@@ -31,16 +31,10 @@ def loadDriver(hostName,userName,password):
command
=
"ifconfig | grep wr | wc -l"
value
=
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
if
(
int
(
value
)
==
0
):
command
=
"sudo modprobe -r spec"
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
command
=
"sudo modprobe -r wr-nic"
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
command
=
"sudo modprobe spec"
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
command
=
"sudo insmod /lib/modules/$(uname -r)/extra/wr-nic.ko wrc=1"
#esto es temporal
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
command
=
"sudo modprobe wr-nic"
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
commands
=
[
"sudo modprobe spec"
,
"sudo modprobe htvic"
,
"sudo modprobe wr-nic"
,
"sudo modprobe wr-dio"
]
for
cmd
in
commands
:
sshCmd
.
exec
(
hostName
,
cmd
,
userName
,
password
)
command
=
"ifconfig | grep wr | wc -l"
value
=
sshCmd
.
exec
(
hostName
,
command
,
userName
,
password
)
if
(
int
(
value
)
==
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