summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update-kernel.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 143e8ec..b0ee125 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -293,14 +293,16 @@ find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -
done
# install extra firmware files in modloop (i.e. not detected by modinfo)
-for _xfw in "$modloopfw"; do
- if [ -f "$ROOT/lib/firmware/$_xfw" ]; then
- install -pD "$ROOT/lib/firmware/$_xfw" \
- "$MODLOOP"/modules/firmware/"$_xfw"
- elif [ -n "$_xfw" ]; then
- echo "Warning: extra firmware \"$_xfw\" not found!"
- fi
-done
+if [ -n "$modloopfw" ]; then
+ for _xfw in "$modloopfw"; do
+ if [ -f "$ROOT/lib/firmware/$_xfw" ]; then
+ install -pD "$ROOT/lib/firmware/$_xfw" \
+ "$MODLOOP"/modules/firmware/"$_xfw"
+ elif [ -n "$_xfw" ]; then
+ echo "Warning: extra firmware \"$_xfw\" not found!"
+ fi
+ done
+fi
# wireless regulatory db
if [ -e "$ROOT"/lib/modules/*/kernel/net/wireless/cfg80211.ko ]; then