Changeset 21113


Ignore:
Timestamp:
2010-04-23T17:32:22+02:00 (7 years ago)
Author:
jow
Message:

[backfire] merge r20683

Location:
branches/backfire/package/base-files/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/base-files/files/etc/hotplug2-common.rules

    r19608 r21113  
    3636 
    3737DEVICENAME == device-mapper { 
    38        nothrottle 
    39        makedev /dev/mapper/control 0600 
     38        nothrottle 
     39        makedev /dev/mapper/control 0600 
    4040} 
    4141 
     
    4646} 
    4747 
    48 FIRMWARE is set { 
     48FIRMWARE is set, ACTION == add { 
    4949        nothrottle 
    50         exec /sbin/hotplug-call firmware 
     50        load-firmware /lib/firmware 
    5151        next 
    5252} 
  • branches/backfire/package/base-files/files/sbin/hotplug-call

    r20649 r21113  
    11#!/bin/sh 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2010 OpenWrt.org 
    33 
    44export HOTPLUG_TYPE="$1" 
    5  
    6 # bypass the normal hotplug path for firmware loading 
    7 # would otherwise cause problems with drivers like bcm43xx 
    8 [ -d /sys/firmware -a "firmware" = "$HOTPLUG_TYPE" -a "add" = "$ACTION" ] && { 
    9         [ -f "/lib/firmware/$FIRMWARE" ] && { 
    10                 echo 1 > "/sys$DEVPATH/loading" 
    11                 dd if="/lib/firmware/$FIRMWARE" of="/sys$DEVPATH/data" bs=64k 
    12                 echo 0 > "/sys$DEVPATH/loading" 
    13         } || echo -1 > "/sys$DEVPATH/loading" 
    14         exit 0 
    15 } 
    165 
    176. /etc/functions.sh 
Note: See TracChangeset for help on using the changeset viewer.