All pastes #957015 Raw Edit

Anonymous

public text v1 · immutable
#957015 ·published 2008-03-25 18:50 UTC
rendered paste body
# 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"