aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-06-21 06:11:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-21 06:11:28 +0000
commit3342db32fa783c69188057ac182538fd4277979b (patch)
tree2d712d2008c506c5a8dd2f428adc4c36ffeb63fa
parent96b29f5dd64111b9d063a327e24247ced02c1427 (diff)
downloadalpine-conf-3342db32fa783c69188057ac182538fd4277979b.tar.bz2
alpine-conf-3342db32fa783c69188057ac182538fd4277979b.tar.xz
update-kernel: fix install of firware
prevent to exit with error due to set -e, if last firmware does not have a *.txt file.
-rw-r--r--update-kernel.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/update-kernel.in b/update-kernel.in
index aaf1cff..4267042 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -252,8 +252,9 @@ find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -
if [ -e "$ROOT/lib/firmware/$FW" ]; then
install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW
# include nvram files if firmware is needed.
- [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ] && install -pD \
- $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt
+ if [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ]; then
+ install -pD $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt
+ fi
fi
done