summaryrefslogtreecommitdiff
path: root/update-kernel.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-kernel.in')
-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