2 # Copyright (C) 2006 OpenWrt.org
4 [ -x /sbin
/mdev
-a -n "$ACTION" -a -n "$DEVPATH" ] && /sbin
/mdev
"$@"
6 # bypass the normal hotplug path for firmware loading
7 # would otherwise cause problems with drivers like bcm43xx
8 [ "$1" = "firmware" -a "$ACTION" = "add" ] && {
9 [ -f "/lib/firmware/$FIRMWARE" ] && {
10 echo 1 > "/sys$DEVPATH/loading"
11 cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data"
12 echo 0 > "/sys$DEVPATH/loading"
19 PATH
=/bin
:/sbin
:/usr
/bin
:/usr
/sbin
22 export PATH LOGNAME USER
24 [ \
! -z "$1" -a -d /etc
/hotplug.d
/$1 ] && {
25 for script in $
(ls /etc
/hotplug.d
/$1/* 2>&-); do (
26 [ -f $script ] && .
$script
This page took 0.04718 seconds and 5 git commands to generate.