diff options
author | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2010-04-01 15:22:13 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2010-04-01 15:22:13 +0000 |
commit | 043b77a460533b0a879c57e8a76ae2fd021f3f2a (patch) | |
tree | 62373fae9f91c81afb60e2e6a58188364b3c1449 /package | |
parent | d3b9b93dd3df29460b21b1b4daa556f81f5780ba (diff) | |
download | upstream-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')
-rwxr-xr-x | package/base-files/files/sbin/hotplug-call | 2 |
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 } |