From a9e78431f4bfa9ee3767f6eb75e8b069f7487a11 Mon Sep 17 00:00:00 2001 From: acinonyx Date: Thu, 1 Apr 2010 15:22:13 +0000 Subject: [PATCH] [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 --- package/base-files/files/sbin/hotplug-call | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index c5a76a76c..e56460de9 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 } -- 2.20.1