Changeset 2834


Ignore:
Timestamp:
2006-01-05T02:20:44+01:00 (12 years ago)
Author:
nbd
Message:

add firmware loading support to hotplug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/base-files/default/sbin/hotplug

    r2531 r2834  
    11#!/bin/sh 
     2[ "$1" = "firmware" -a "$ACTION" = "add" ] && { 
     3        [ -f "/lib/firmware/$FIRMWARE" ] && { 
     4                echo 1 > "/sys$DEVPATH/loading" 
     5                cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data" 
     6                echo 0 > "/sys$DEVPATH/loading" 
     7        } 
     8        exit 0 
     9} 
     10 
    211[ -e /tmp/.failsafe ] && { 
    312        export FAILSAFE=true 
Note: See TracChangeset for help on using the changeset viewer.