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
6ee2da49
Commit
6ee2da49
authored
Apr 02, 2014
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: add sudo to write in depmod config
parent
40d2c21d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
wr-ssk-get
scripts/wr-ssk-get
+3
-8
No files found.
scripts/wr-ssk-get
View file @
6ee2da49
...
...
@@ -129,19 +129,14 @@ checkdrv()
done
if
(
lsb_release
-a
2>&1 |
grep
Ubuntu &> /dev/null
)
;
then
echo
"Forcing depmod.conf to look into"
;
fi
if
(
lsb_release
-a
|
grep
Ubuntu
)
;
then
echo
"Forcing depmod.d/ubuntu.conf to look into extra folder"
;
cat
/etc/depmod.d/ubuntu.conf |
grep
extra &> /dev/null
if
[
"x
$?
"
!=
"x0"
]
;
then
echo
"Adding extra to depmod.conf search path in order to force looking at our installed modules"
sed
's/built-in/extra built-in/g'
-i
/etc/depmod.d/ubuntu.conf
s
udo s
ed
's/built-in/extra built-in/g'
-i
/etc/depmod.d/ubuntu.conf
fi
fi
echo
"Creating dependancies... (This can take some time)"
echo
"sudo depmod -a"
sudo
depmod
-a
...
...
@@ -248,7 +243,7 @@ genreport()
echo
"WARNING: Installation skipped"
fi
cat
/sys/module/fmc/version
cat
/sys/module/fmc/
*
version
for
fmcmod
in
$(
find /lib/modules/
$(
uname
-r
)
-name
fmc.ko
)
;
do
echo
${
fmcmod
}
strings
${
fmcmod
}
|
grep
version
=
...
...
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