mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-03 03:43:09 +01:00
base-files: Cancel firmware loading if file doesn't exist
SVN-Revision: 20649
This commit is contained in:
parent
d3b9b93dd3
commit
043b77a460
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue