aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
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/sbin
parentd3b9b93dd3df29460b21b1b4daa556f81f5780ba (diff)
downloadupstream-043b77a460533b0a879c57e8a76ae2fd021f3f2a.tar.gz
upstream-043b77a460533b0a879c57e8a76ae2fd021f3f2a.tar.bz2
upstream-043b77a460533b0a879c57e8a76ae2fd021f3f2a.zip
base-files: Cancel firmware loading if file doesn't exist
SVN-Revision: 20649
Diffstat (limited to 'package/base-files/files/sbin')
-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 c5a76a76c1..e56460de93 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
}