add firmware loading support to hotplug
SVN-Revision: 2834
This commit is contained in:
parent
d59abc2a2d
commit
029055c7d7
1 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,13 @@
|
|||
#!/bin/sh
|
||||
[ "$1" = "firmware" -a "$ACTION" = "add" ] && {
|
||||
[ -f "/lib/firmware/$FIRMWARE" ] && {
|
||||
echo 1 > "/sys$DEVPATH/loading"
|
||||
cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data"
|
||||
echo 0 > "/sys$DEVPATH/loading"
|
||||
}
|
||||
exit 0
|
||||
}
|
||||
|
||||
[ -e /tmp/.failsafe ] && {
|
||||
export FAILSAFE=true
|
||||
} || {
|
||||
|
|
Loading…
Reference in a new issue