1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 14:21:51 +02:00

add firmware loading support to hotplug

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2834 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-01-05 01:20:44 +00:00
parent 41d0bac30e
commit ddef923d81

View File

@ -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
} || {