summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-04-01 15:22:13 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-04-01 15:22:13 +0000
commit043b77a460533b0a879c57e8a76ae2fd021f3f2a (patch)
tree62373fae9f91c81afb60e2e6a58188364b3c1449 /package/base-files/files
parentd3b9b93dd3df29460b21b1b4daa556f81f5780ba (diff)
downloadmtk-20170518-043b77a460533b0a879c57e8a76ae2fd021f3f2a.zip
mtk-20170518-043b77a460533b0a879c57e8a76ae2fd021f3f2a.tar.gz
mtk-20170518-043b77a460533b0a879c57e8a76ae2fd021f3f2a.tar.bz2
base-files: Cancel firmware loading if file doesn't exist
SVN-Revision: 20649
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/sbin/hotplug-call2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call
index c5a76a7..e56460d 100755
--- a/package/base-files/files/sbin/hotplug-call
+++ b/package/base-files/files/sbin/hotplug-call
@@ -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
}