From 9f5c8d20dc6cbaa06d14ba274a779b2b3b19e4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 28 Oct 2015 10:59:38 +0200 Subject: update-kernel: fix fw copying we run with -e so make sure the [] statement does not return false --- update-kernel.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update-kernel.in b/update-kernel.in index 1327047..248c3d1 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -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 -- cgit v1.2.3