Commit 3342db32 authored by Natanael Copa's avatar Natanael Copa

update-kernel: fix install of firware

prevent to exit with error due to set -e, if last firmware does not have
a *.txt file.
parent 96b29f5d
...@@ -252,8 +252,9 @@ find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort - ...@@ -252,8 +252,9 @@ find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -
if [ -e "$ROOT/lib/firmware/$FW" ]; then if [ -e "$ROOT/lib/firmware/$FW" ]; then
install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW
# include nvram files if firmware is needed. # include nvram files if firmware is needed.
[ -e "$ROOT/lib/firmware/${FW%.*}.txt" ] && install -pD \ if [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ]; then
$ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt install -pD $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt
fi
fi fi
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment