From: Vasilis Tsiligiannis Date: Thu, 1 Apr 2010 15:22:13 +0000 (+0000) Subject: base-files: Cancel firmware loading if file doesn't exist X-Git-Tag: reboot~20347 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=043b77a460533b0a879c57e8a76ae2fd021f3f2a;p=oweals%2Fopenwrt.git base-files: Cancel firmware loading if file doesn't exist SVN-Revision: 20649 --- 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 }