mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 00:09:43 +02:00
[package] base-files: Cancel firmware loading if file doesn't exist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20649 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
23f27ea50b
commit
a9e78431f4
@ -10,7 +10,7 @@ export HOTPLUG_TYPE="$1"
|
||||
echo 1 > "/sys$DEVPATH/loading"
|
||||
dd if="/lib/firmware/$FIRMWARE" of="/sys$DEVPATH/data" bs=64k
|
||||
echo 0 > "/sys$DEVPATH/loading"
|
||||
}
|
||||
} || echo -1 > "/sys$DEVPATH/loading"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user