diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -346,8 +346,11 @@ add_module() { map add_module "${deps[@]}" ;; firmware) - if [[ -e /usr/lib/firmware/$value ]]; then - add_file "/usr/lib/firmware/$value" "/usr/lib/firmware/$value" 644 + # ensure that we favor updated firmware files + if [[ -f $_d_firmware/updates/$value ]]; then + add_file "$_d_firmware/updates/$value" "$_d_firmware/updates/$value" 644 + else + add_file "$_d_firmware/$value" "$_d_firmware/$value" 644 fi ;; esac |