aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2010-04-01 15:22:13 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2010-04-01 15:22:13 +0000
commit451080310104f834c98ea06d6f82a034e8093511 (patch)
treeee45a953ff82907795ac783fc644657be3d41beb /package/base-files/files/sbin
parent508ed126fce54e34107dc4335fe1639d5f57a098 (diff)
downloadmaster-187ad058-451080310104f834c98ea06d6f82a034e8093511.tar.gz
master-187ad058-451080310104f834c98ea06d6f82a034e8093511.tar.bz2
master-187ad058-451080310104f834c98ea06d6f82a034e8093511.zip
[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
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
}