Create firmware directory if it doesn't exist

This commit is contained in:
Bob Mottram 2016-10-21 13:36:41 +01:00
parent a7bd479d25
commit 426585b25a
1 changed files with 4 additions and 1 deletions

View File

@ -48,9 +48,12 @@ function setup_wifi_atheros {
atheros_drivers_file=drivers/$atheros_drivers_file atheros_drivers_file=drivers/$atheros_drivers_file
fi fi
fi fi
if [ ! -d /lib/firmware ]; then
mkdir /lib/firmware
if [ ! -d /lib/firmware ]; then if [ ! -d /lib/firmware ]; then
return return
fi fi
fi
if [ -f /lib/firmware/htc_9271.fw ]; then if [ -f /lib/firmware/htc_9271.fw ]; then
return return
fi fi