add firmware loading support to hotplug

SVN-Revision: 2834
This commit is contained in:
Felix Fietkau 2006-01-05 01:20:44 +00:00
parent d59abc2a2d
commit 029055c7d7

View file

@ -1,4 +1,13 @@
#!/bin/sh #!/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 ] && { [ -e /tmp/.failsafe ] && {
export FAILSAFE=true export FAILSAFE=true
} || { } || {