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
c3b5ef9c
Commit
c3b5ef9c
authored
Apr 02, 2014
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: force to dash interpreter
Also correct bad error message when removing kernel modules
parent
6ee2da49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wr-ssk-get
scripts/wr-ssk-get
+4
-4
No files found.
scripts/wr-ssk-get
View file @
c3b5ef9c
#!/bin/sh
#!/bin/
da
sh
## Script to ease the installation of gateware HDL when using
## the starting kit
##
...
...
@@ -118,6 +118,7 @@ checkdrv()
{
echo ""
echo "Checking the drivers"
for mod in "fmc" "spec" "wr-nic"; do
if [ -s /lib/modules/$(uname -r)/extra/${mod}.ko ]; then
echo "${mod}.ko found!"
...
...
@@ -186,9 +187,8 @@ weeprom()
removemod()
{
for mod in "wr-nic" "spec" "fmc"; do
lsmod |
grep
${
mod
}
&> /dev/null
if
[
"x
$?
"
=
"x0"
]
;
then
echo
"Removing
${
mod
}
"
if ( lsmod | grep ${mod} > /dev/null ); then
echo "Removing ${mod} kernel module..."
sudo rmmod ${mod}
fi
done
...
...
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