diff options
Diffstat (limited to 'update-kernel.in')
-rw-r--r-- | update-kernel.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/update-kernel.in b/update-kernel.in index eeb0716..0079182 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -278,10 +278,10 @@ mkdir -p $MODLOOP/modules/firmware find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -u | while read FW; do if [ -e "$ROOT/lib/firmware/$FW" ]; then install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW - # include nvram files if firmware is needed. - if [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ]; then - install -pD $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt - fi + # copy also all potentially associated files + for _file in "$ROOT"/lib/firmware/"${FW%.*}".*; do + install -pD "$_file" "$MODLOOP/modules/firmware/${_file#*/lib/firmware/}" + done fi done |