mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-01 21:35:55 +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:
parent
41d0bac30e
commit
ddef923d81
@ -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 New Issue
Block a user