1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 23:29:22 +02:00

add firmware loading support to hotplug

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

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