# Fire up a process in the background to load the firmware if necessary sysf="/sys/class/firmware/firmware-$iface" ( # Wait for the firware to be requested, if required [ -f $sysf/loading ] || sleep 1 [ -f $sysf/loading ] || sleep 1 if [ -f $sysf/loading ] ; then echo "1" >$sysf/loading cat /lib/firmware/NPE-B >$sysf/data echo "0" >$sysf/loading fi ) & # Trigger the firmware load proactively ifconfig "$iface" up # ifup "$iface"