Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
alpine-conf
Commits
9f5c8d20
Commit
9f5c8d20
authored
Oct 28, 2015
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-kernel: fix fw copying
we run with -e so make sure the [] statement does not return false
parent
6171fc7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
update-kernel.in
update-kernel.in
+3
-1
No files found.
update-kernel.in
View file @
9f5c8d20
...
...
@@ -223,7 +223,9 @@ mkdir $DTB_STAGING $MODLOOP $STAGING
cp
-a
$ROOT
/lib/modules
$MODLOOP
mkdir
-p
$MODLOOP
/modules/firmware
find
$ROOT
/lib/modules
-type
f
-name
"*.ko"
| xargs modinfo
-F
firmware |
sort
-u
|
while
read
FW
;
do
[
-e
"
$ROOT
/lib/firmware/
$FW
"
]
&&
install
-pD
$ROOT
/lib/firmware/
$FW
$MODLOOP
/modules/firmware/
$FW
if
[
-e
"
$ROOT
/lib/firmware/
$FW
"
]
;
then
install
-pD
$ROOT
/lib/firmware/
$FW
$MODLOOP
/modules/firmware/
$FW
fi
done
_exec mksquashfs
$MODLOOP
"
$STAGING
/
$MODIMG
"
-comp
xz
...
...
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