Commit 9f5c8d20 authored by Timo Teräs's avatar Timo Teräs
Browse files

update-kernel: fix fw copying

we run with -e so make sure the [] statement does not return false
parent 6171fc7e
......@@ -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
_exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment