aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-10-28 10:59:38 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-10-28 10:59:38 +0200
commit9f5c8d20dc6cbaa06d14ba274a779b2b3b19e4c4 (patch)
treed038c259a2a8cf12306b8ac81bb8efcf8c3185f7
parent6171fc7e4fb14a70edfd86a794a844c3f07823b9 (diff)
downloadalpine-conf-9f5c8d20dc6cbaa06d14ba274a779b2b3b19e4c4.tar.bz2
alpine-conf-9f5c8d20dc6cbaa06d14ba274a779b2b3b19e4c4.tar.xz
update-kernel: fix fw copying
we run with -e so make sure the [] statement does not return false
-rw-r--r--update-kernel.in4
1 files changed, 3 insertions, 1 deletions
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